Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 68) sorted by relevance

123

/linux-4.19.296/drivers/s390/scsi/
Dzfcp_unit.c22 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) in zfcp_unit_scsi_scan() argument
24 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan()
27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan()
36 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, in zfcp_unit_scsi_scan_work() local
39 zfcp_unit_scsi_scan(unit); in zfcp_unit_scsi_scan_work()
40 put_device(&unit->dev); in zfcp_unit_scsi_scan_work()
55 struct zfcp_unit *unit; in zfcp_unit_queue_scsi_scan() local
58 list_for_each_entry(unit, &port->unit_list, list) { in zfcp_unit_queue_scsi_scan()
59 get_device(&unit->dev); in zfcp_unit_queue_scsi_scan()
61 &unit->scsi_work) <= 0) in zfcp_unit_queue_scsi_scan()
[all …]
Dzfcp_sysfs.c79 ZFCP_DEFINE_ATTR(zfcp_unit, unit, status, "0x%08x\n",
80 zfcp_unit_sdev_status(unit));
81 ZFCP_DEFINE_ATTR(zfcp_unit, unit, in_recovery, "%d\n",
82 (zfcp_unit_sdev_status(unit) &
84 ZFCP_DEFINE_ATTR(zfcp_unit, unit, access_denied, "%d\n",
85 (zfcp_unit_sdev_status(unit) &
87 ZFCP_DEFINE_ATTR_CONST(unit, access_shared, "%d\n", 0);
88 ZFCP_DEFINE_ATTR_CONST(unit, access_readonly, "%d\n", 0);
126 struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); in zfcp_sysfs_unit_failed_show() local
130 sdev = zfcp_unit_sdev(unit); in zfcp_sysfs_unit_failed_show()
[all …]
Dzfcp_ccw.c116 struct zfcp_unit *unit, *u; in zfcp_ccw_remove() local
129 list_for_each_entry_safe(unit, u, &port->unit_list, list) in zfcp_ccw_remove()
130 list_move(&unit->list, &unit_remove_lh); in zfcp_ccw_remove()
137 list_for_each_entry_safe(unit, u, &unit_remove_lh, list) in zfcp_ccw_remove()
138 device_unregister(&unit->dev); in zfcp_ccw_remove()
/linux-4.19.296/include/net/
DSpace.h6 struct net_device *hp100_probe(int unit);
7 struct net_device *ultra_probe(int unit);
8 struct net_device *wd_probe(int unit);
9 struct net_device *ne_probe(int unit);
10 struct net_device *fmv18x_probe(int unit);
11 struct net_device *i82596_probe(int unit);
12 struct net_device *ni65_probe(int unit);
13 struct net_device *sonic_probe(int unit);
14 struct net_device *smc_init(int unit);
15 struct net_device *atarilance_probe(int unit);
[all …]
/linux-4.19.296/drivers/clk/mmp/
Dreset.c15 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_of_reset_xlate() local
23 cell = &unit->cells[i]; in mmp_of_reset_xlate()
37 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() local
42 cell = &unit->cells[id]; in mmp_clk_reset_assert()
59 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_deassert() local
64 cell = &unit->cells[id]; in mmp_clk_reset_deassert()
86 struct mmp_clk_reset_unit *unit; in mmp_clk_reset_register() local
88 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in mmp_clk_reset_register()
89 if (!unit) in mmp_clk_reset_register()
92 unit->cells = cells; in mmp_clk_reset_register()
[all …]
Dclk.c10 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, in mmp_clk_init() argument
19 unit->clk_table = clk_table; in mmp_clk_init()
20 unit->nr_clks = nr_clks; in mmp_clk_init()
21 unit->clk_data.clks = clk_table; in mmp_clk_init()
22 unit->clk_data.clk_num = nr_clks; in mmp_clk_init()
23 of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); in mmp_clk_init()
26 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_rate_clks() argument
44 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks()
48 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_factor_clks() argument
66 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_factor_clks()
[all …]
Dclk-of-pxa1928.c29 struct mmp_clk_unit unit; member
72 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_pll_init() local
74 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa1928_pll_init()
77 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa1928_pll_init()
133 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_apb_periph_clk_init() local
135 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
138 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
172 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_axi_periph_clk_init() local
174 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
177 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
[all …]
Dclk-of-pxa910.c51 struct mmp_clk_unit unit; member
97 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init() local
99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa910_pll_init()
102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa910_pll_init()
110 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); in pxa910_pll_init()
167 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init() local
169 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
172 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
175 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
178 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
[all …]
Dclk-of-pxa168.c52 struct mmp_clk_unit unit; member
97 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_pll_init() local
99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa168_pll_init()
102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa168_pll_init()
110 mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); in pxa168_pll_init()
166 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_apb_periph_clk_init() local
168 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
171 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
216 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_axi_periph_clk_init() local
218 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init()
[all …]
Dclk-of-mmp2.c59 struct mmp_clk_unit unit; member
109 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_pll_init() local
111 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in mmp2_pll_init()
114 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in mmp2_pll_init()
122 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); in mmp2_pll_init()
181 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_apb_periph_clk_init() local
183 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init()
186 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init()
247 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_axi_periph_clk_init() local
260 mmp_clk_add(unit, MMP2_CLK_CCIC0_MIX, clk); in mmp2_axi_periph_clk_init()
[all …]
Dclk.h150 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit,
162 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit,
176 void mmp_register_general_gate_clks(struct mmp_clk_unit *unit,
192 void mmp_register_gate_clks(struct mmp_clk_unit *unit,
208 void mmp_register_mux_clks(struct mmp_clk_unit *unit,
223 void mmp_register_div_clks(struct mmp_clk_unit *unit,
236 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit,
238 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id,
/linux-4.19.296/drivers/char/hw_random/
Dn2-drv.c109 unsigned long unit) in n2rng_generic_read_control_v2() argument
115 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2()
146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
150 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2()
153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
166 watchdog_timeout, unit); in n2rng_write_ctl_one()
168 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
201 unsigned long unit, in n2rng_read_diag_data_one() argument
212 unit, ticks); in n2rng_read_diag_data_one()
220 unsigned long unit, in n2rng_generic_read_diag_data() argument
[all …]
Dn2rng.h57 unsigned long unit,
69 unsigned long unit);
75 unsigned long unit,
/linux-4.19.296/include/linux/
Dsound.h12 extern int register_sound_special(const struct file_operations *fops, int unit);
13 extern int register_sound_special_device(const struct file_operations *fops, int unit, struct devic…
17 extern void unregister_sound_special(int unit);
18 extern void unregister_sound_mixer(int unit);
19 extern void unregister_sound_dsp(int unit);
Dfirewire.h235 static inline struct fw_unit *fw_unit_get(struct fw_unit *unit) in fw_unit_get() argument
237 get_device(&unit->device); in fw_unit_get()
239 return unit; in fw_unit_get()
242 static inline void fw_unit_put(struct fw_unit *unit) in fw_unit_put() argument
244 put_device(&unit->device); in fw_unit_put()
247 static inline struct fw_device *fw_parent_device(struct fw_unit *unit) in fw_parent_device() argument
249 return fw_device(unit->device.parent); in fw_parent_device()
256 int (*probe)(struct fw_unit *unit, const struct ieee1394_device_id *id);
258 void (*update)(struct fw_unit *unit);
259 void (*remove)(struct fw_unit *unit);
Dppp-comp.h47 int opt_len, int unit, int opthdr, int debug);
67 int opt_len, int unit, int opthdr, int mru,
Disdn_ppp.h71 int unit,int debug);
174 int unit; member
/linux-4.19.296/drivers/sh/maple/
Dmaple.c57 int unit; member
207 mdev->port, mdev->unit); in maple_allocq()
211 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument
223 mdev->unit = unit; in maple_alloc_dev()
249 int port, unit, from, to, len; in maple_build_block() local
253 unit = mq->dev->unit; in maple_build_block()
256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block()
366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver()
384 mdev->unit, function); in maple_attach_driver()
394 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver()
[all …]
/linux-4.19.296/drivers/isdn/i4l/
Disdn_bsdcomp.c122 unsigned char unit; /* ppp unit number */ member
379 static int bsd_init(void *state, struct isdn_ppp_comp_data *data, int unit, int debug) in bsd_init() argument
386 printk(KERN_ERR "isdn_bsd_init: [%d] ERR, state %lx data %lx\n", unit, (long)state, (long)data); in bsd_init()
410 db->unit = unit; in bsd_init()
694 db->unit, seq, db->seqno - 1); in bsd_decompress()
742 printk(KERN_DEBUG "bsd_decomp%d: bad CLEAR\n", db->unit); in bsd_decompress()
753 db->unit, incode, oldcode); in bsd_decompress()
772 printk(KERN_DEBUG "bsd_decomp%d: ran out of mru\n", db->unit); in bsd_decompress()
795 printk(KERN_ERR "bsd_decomp%d: fell off end of chain ", db->unit); in bsd_decompress()
799 printk(KERN_ERR "bsd_decomp%d: bad code chain 0x%x finchar=0x%x ", db->unit, incode, finchar); in bsd_decompress()
[all …]
Disdn_ppp.c72 static int isdn_ppp_bundle(struct ippp_struct *, int unit);
85 isdn_ppp_frame_log(char *info, char *data, int len, int maxlen, int unit, int slot) in isdn_ppp_frame_log() argument
98 printk(KERN_DEBUG "[%d/%d].%s[%d]: %s\n", unit, slot, info, i, buf); in isdn_ppp_frame_log()
159 int unit = 0; in isdn_ppp_bind() local
195 unit = isdn_ppp_if_get_unit(lp->netdev->dev->name); in isdn_ppp_bind()
196 if (unit < 0) { in isdn_ppp_bind()
206 is->unit = unit; in isdn_ppp_bind()
312 is->unit = -1; /* set, when we have our interface */ in isdn_ppp_open()
502 (int) min, (int) is->unit, (int) val); in isdn_ppp_ioctl()
509 if ((r = set_arg(argp, &is->unit, sizeof(is->unit)))) in isdn_ppp_ioctl()
[all …]
/linux-4.19.296/drivers/media/rc/img-ir/
Dimg-ir-hw.c70 unsigned int unit) in img_ir_timing_preprocess() argument
74 if (unit) { in img_ir_timing_preprocess()
76 range->min = (range->min*unit)/1000; in img_ir_timing_preprocess()
77 range->max = (range->max*unit + 999)/1000; /* round up */ in img_ir_timing_preprocess()
82 unsigned int unit) in img_ir_symbol_timing_preprocess() argument
84 img_ir_timing_preprocess(&timing->pulse, unit); in img_ir_symbol_timing_preprocess()
85 img_ir_timing_preprocess(&timing->space, unit); in img_ir_symbol_timing_preprocess()
89 unsigned int unit) in img_ir_timings_preprocess() argument
91 img_ir_symbol_timing_preprocess(&timings->ldr, unit); in img_ir_timings_preprocess()
92 img_ir_symbol_timing_preprocess(&timings->s00, unit); in img_ir_timings_preprocess()
[all …]
/linux-4.19.296/drivers/clk/sirf/
Dclk-atlas7.c1277 struct clk_unit *unit; in atlas7_unit_clk_register() local
1280 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in atlas7_unit_clk_register()
1281 if (!unit) in atlas7_unit_clk_register()
1290 unit->hw.init = &init; in atlas7_unit_clk_register()
1291 unit->regofs = regofs; in atlas7_unit_clk_register()
1292 unit->bit = bit; in atlas7_unit_clk_register()
1294 unit->type = type; in atlas7_unit_clk_register()
1295 unit->idle_bit = idle_bit; in atlas7_unit_clk_register()
1296 unit->lock = lock; in atlas7_unit_clk_register()
1298 clk = clk_register(dev, &unit->hw); in atlas7_unit_clk_register()
[all …]
/linux-4.19.296/fs/btrfs/
Dfree-space-cache.c1429 static inline unsigned long offset_to_bit(u64 bitmap_start, u32 unit, in offset_to_bit() argument
1434 return (unsigned long)(div_u64(offset, unit)); in offset_to_bit()
1437 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument
1439 return (unsigned long)(div_u64(bytes, unit)); in bytes_to_bits()
1448 bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit; in offset_to_bitmap()
1605 if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset) in tree_search_offset()
1616 ctl->unit > offset) in tree_search_offset()
1669 u64 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; in recalculate_thresholds()
1691 bitmap_bytes = (ctl->total_bitmaps + 1) * ctl->unit; in recalculate_thresholds()
1715 start = offset_to_bit(info->offset, ctl->unit, offset); in __bitmap_clear_bits()
[all …]
/linux-4.19.296/drivers/of/
DKconfig16 bool "Device Tree runtime unit tests"
62 can enable it manually to improve device tree unit test coverage.
101 enable it manually to improve device tree unit test coverage.
/linux-4.19.296/lib/
Dstring_helpers.c54 const char *unit; in string_get_size() local
123 unit = "UNK"; in string_get_size()
125 unit = units_str[units][i]; in string_get_size()
128 tmp, unit); in string_get_size()

123