Home
last modified time | relevance | path

Searched refs:num (Results 1 – 25 of 1108) sorted by relevance

12345678910>>...45

/drivers/regulator/
Dmax77686-regulator.c342 #define regulator_desc_ldo(num) { \ argument
343 .name = "LDO"#num, \
344 .of_match = of_match_ptr("LDO"#num), \
347 .id = MAX77686_LDO##num, \
355 .vsel_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \
357 .enable_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \
361 #define regulator_desc_lpm_ldo(num) { \ argument
362 .name = "LDO"#num, \
363 .of_match = of_match_ptr("LDO"#num), \
365 .id = MAX77686_LDO##num, \
[all …]
Ds2mps11.c264 #define regulator_desc_s2mps11_ldo(num, step) { \ argument
265 .name = "LDO"#num, \
266 .id = S2MPS11_LDO##num, \
274 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \
276 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \
280 #define regulator_desc_s2mps11_buck1_4(num) { \ argument
281 .name = "BUCK"#num, \
282 .id = S2MPS11_BUCK##num, \
290 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \
292 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \
[all …]
Dmax77802-regulator.c365 #define regulator_77802_desc_p_ldo(num, supply, log) { \ argument
366 .name = "LDO"#num, \
367 .of_match = of_match_ptr("LDO"#num), \
369 .id = MAX77802_LDO##num, \
378 .vsel_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \
380 .enable_reg = MAX77802_REG_LDO1CTRL1 + num - 1, \
386 #define regulator_77802_desc_n_ldo(num, supply, log) { \ argument
387 .name = "LDO"#num, \
388 .of_match = of_match_ptr("LDO"#num), \
390 .id = MAX77802_LDO##num, \
[all …]
/drivers/clk/
Dclk-si5351.c50 unsigned char num; member
126 static inline u8 si5351_msynth_params_address(int num) in si5351_msynth_params_address() argument
128 if (num > 5) in si5351_msynth_params_address()
129 return SI5351_CLK6_PARAMETERS + (num - 6); in si5351_msynth_params_address()
130 return SI5351_CLK0_PARAMETERS + (SI5351_PARAMETERS_LENGTH * num); in si5351_msynth_params_address()
370 int num, enum si5351_pll_src parent) in _si5351_pll_reparent() argument
372 u8 mask = (num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in _si5351_pll_reparent()
377 if (num > 2) in _si5351_pll_reparent()
393 u8 mask = (hwdata->num == 0) ? SI5351_PLLA_SOURCE : SI5351_PLLB_SOURCE; in si5351_pll_get_parent()
413 return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, in si5351_pll_set_parent()
[all …]
/drivers/staging/greybus/
Daudio_manager_sysfs.c21 int num = sscanf(buf, in manager_sysfs_add_store() local
27 if (num != 7) in manager_sysfs_add_store()
30 num = gb_audio_manager_add(&desc); in manager_sysfs_add_store()
31 if (num < 0) in manager_sysfs_add_store()
46 int num = kstrtoint(buf, 10, &id); in manager_sysfs_remove_store() local
48 if (num != 1) in manager_sysfs_remove_store()
51 num = gb_audio_manager_remove(id); in manager_sysfs_remove_store()
52 if (num) in manager_sysfs_remove_store()
53 return num; in manager_sysfs_remove_store()
67 int num = kstrtoint(buf, 10, &id); in manager_sysfs_dump_store() local
[all …]
/drivers/pcmcia/
Drsrc_nonstatic.c52 u_long base, num; member
111 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument
116 if ((p != map) && (p->base+p->num >= base)) { in add_interval()
117 p->num = max(num + base - p->base, p->num); in add_interval()
120 if ((p->next == map) || (p->next->base > base+num-1)) in add_interval()
128 q->base = base; q->num = num; in add_interval()
135 static int sub_interval(struct resource_map *map, u_long base, u_long num) in sub_interval() argument
143 if ((q->base+q->num > base) && (base+num > q->base)) { in sub_interval()
145 if (q->base+q->num <= base+num) { in sub_interval()
153 q->num = q->base + q->num - base - num; in sub_interval()
[all …]
Drsrc_iodyn.c59 unsigned long base, int num, in __iodyn_find_io_region() argument
62 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, in __iodyn_find_io_region()
73 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, in __iodyn_find_io_region()
77 ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, in __iodyn_find_io_region()
88 unsigned int *base, unsigned int num, in iodyn_find_io() argument
121 num, align); in iodyn_find_io()
129 s->io[i].InUse = num; in iodyn_find_io()
138 resource_size(res) + num)) in iodyn_find_io()
141 s->io[i].InUse += num; in iodyn_find_io()
147 try = res->start - num; in iodyn_find_io()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_profile.c73 int num; in mthca_make_profile() member
101 profile[MTHCA_RES_QP].num = request->num_qp; in mthca_make_profile()
102 profile[MTHCA_RES_SRQ].num = request->num_srq; in mthca_make_profile()
103 profile[MTHCA_RES_EQP].num = request->num_qp; in mthca_make_profile()
104 profile[MTHCA_RES_RDB].num = request->num_qp * request->rdb_per_qp; in mthca_make_profile()
105 profile[MTHCA_RES_CQ].num = request->num_cq; in mthca_make_profile()
106 profile[MTHCA_RES_EQ].num = MTHCA_NUM_EQS; in mthca_make_profile()
107 profile[MTHCA_RES_MCG].num = request->num_mcg; in mthca_make_profile()
108 profile[MTHCA_RES_MPT].num = request->num_mpt; in mthca_make_profile()
109 profile[MTHCA_RES_MTT].num = request->num_mtt; in mthca_make_profile()
[all …]
/drivers/gpu/drm/radeon/
Datombios_i2c.c38 u8 *buf, u8 num) in radeon_process_i2c_ch() argument
56 if (num > ATOM_MAX_HW_I2C_WRITE) { in radeon_process_i2c_ch()
57 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 3)\n", num); in radeon_process_i2c_ch()
65 if (num) in radeon_process_i2c_ch()
66 num--; in radeon_process_i2c_ch()
67 if (num) in radeon_process_i2c_ch()
68 memcpy(&out, &buf[1], num); in radeon_process_i2c_ch()
71 if (num > ATOM_MAX_HW_I2C_READ) { in radeon_process_i2c_ch()
72 DRM_ERROR("hw i2c: tried to read too many bytes (%d vs 255)\n", num); in radeon_process_i2c_ch()
82 args.ucTransBytes = num; in radeon_process_i2c_ch()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c79 u32 num; in mlx4_make_profile() member
122 profile[MLX4_RES_QP].num = request->num_qp; in mlx4_make_profile()
123 profile[MLX4_RES_RDMARC].num = request->num_qp * request->rdmarc_per_qp; in mlx4_make_profile()
124 profile[MLX4_RES_ALTC].num = request->num_qp; in mlx4_make_profile()
125 profile[MLX4_RES_AUXC].num = request->num_qp; in mlx4_make_profile()
126 profile[MLX4_RES_SRQ].num = request->num_srq; in mlx4_make_profile()
127 profile[MLX4_RES_CQ].num = request->num_cq; in mlx4_make_profile()
128 profile[MLX4_RES_EQ].num = mlx4_is_mfunc(dev) ? dev->phys_caps.num_phys_eqs : in mlx4_make_profile()
130 profile[MLX4_RES_DMPT].num = request->num_mpt; in mlx4_make_profile()
131 profile[MLX4_RES_CMPT].num = MLX4_NUM_CMPTS; in mlx4_make_profile()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Datombios_i2c.c40 u8 *buf, u8 num) in amdgpu_atombios_i2c_process_i2c_ch() argument
57 if (num > ATOM_MAX_HW_I2C_WRITE) { in amdgpu_atombios_i2c_process_i2c_ch()
58 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 3)\n", num); in amdgpu_atombios_i2c_process_i2c_ch()
66 if (num) in amdgpu_atombios_i2c_process_i2c_ch()
67 num--; in amdgpu_atombios_i2c_process_i2c_ch()
68 if (num) in amdgpu_atombios_i2c_process_i2c_ch()
69 memcpy(&out, &buf[1], num); in amdgpu_atombios_i2c_process_i2c_ch()
72 if (num > ATOM_MAX_HW_I2C_READ) { in amdgpu_atombios_i2c_process_i2c_ch()
73 DRM_ERROR("hw i2c: tried to read too many bytes (%d vs 255)\n", num); in amdgpu_atombios_i2c_process_i2c_ch()
83 args.ucTransBytes = num; in amdgpu_atombios_i2c_process_i2c_ch()
[all …]
/drivers/leds/
Dleds-lp8788.c36 enum lp8788_isink_number num; member
42 .num = LP8788_ISINK_3,
55 cfg->num = pdata->num; in lp8788_led_init_device()
59 led->isink_num = cfg->num; in lp8788_led_init_device()
63 mask = 1 << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
64 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device()
70 addr = lp8788_iout_addr[cfg->num]; in lp8788_led_init_device()
71 mask = lp8788_iout_mask[cfg->num]; in lp8788_led_init_device()
78 enum lp8788_isink_number num, int on) in lp8788_led_enable() argument
82 u8 mask = 1 << num; in lp8788_led_enable()
[all …]
/drivers/video/fbdev/
Dchipsfb.c40 #define write_ind(num, val, ap, dp) do { \ argument
41 outb((num), (ap)); outb((val), (dp)); \
43 #define read_ind(num, var, ap, dp) do { \ argument
44 outb((num), (ap)); var = inb((dp)); \
48 #define write_xr(num, val) write_ind(num, val, 0x3d6, 0x3d7) argument
49 #define read_xr(num, var) read_ind(num, var, 0x3d6, 0x3d7) argument
51 #define write_fr(num, val) write_ind(num, val, 0x3d0, 0x3d1) argument
52 #define read_fr(num, var) read_ind(num, var, 0x3d0, 0x3d1) argument
54 #define write_cr(num, val) write_ind(num, val, 0x3d4, 0x3d5) argument
55 #define read_cr(num, var) read_ind(num, var, 0x3d4, 0x3d5) argument
[all …]
/drivers/soc/fsl/qbman/
Dbman_test_api.c115 int num = 8; in bman_test_api() local
117 if (i + num > NUM_BUFS) in bman_test_api()
118 num = NUM_BUFS - i; in bman_test_api()
119 if (bman_release(pool, bufs_in + i, num)) { in bman_test_api()
123 i += num; in bman_test_api()
128 int tmp, num = 8; in bman_test_api() local
130 if (num > i) in bman_test_api()
131 num = i; in bman_test_api()
132 tmp = bman_acquire(pool, bufs_out + i - num, num); in bman_test_api()
133 WARN_ON(tmp != num); in bman_test_api()
[all …]
/drivers/i2c/busses/
Di2c-cros-ec-tunnel.c51 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_message() argument
57 size += num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_count_message()
58 for (i = 0; i < num; i++) in ec_i2c_count_message()
79 int num, u16 bus_num) in ec_i2c_construct_message() argument
86 num * sizeof(struct ec_params_i2c_passthru_msg); in ec_i2c_construct_message()
90 params->num_msgs = num; in ec_i2c_construct_message()
91 for (i = 0; i < num; i++) { in ec_i2c_construct_message()
120 static int ec_i2c_count_response(struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_response() argument
126 for (i = 0; i < num; i++) in ec_i2c_count_response()
146 int *num) in ec_i2c_parse_response() argument
[all …]
/drivers/acpi/
Dacpi_pad.c244 static void set_power_saving_task_num(unsigned int num) in set_power_saving_task_num() argument
246 if (num > ps_tsk_num) { in set_power_saving_task_num()
247 while (ps_tsk_num < num) { in set_power_saving_task_num()
251 } else if (num < ps_tsk_num) { in set_power_saving_task_num()
252 while (ps_tsk_num > num) in set_power_saving_task_num()
275 unsigned long num; in acpi_pad_rrtime_store() local
276 if (kstrtoul(buf, 0, &num)) in acpi_pad_rrtime_store()
278 if (num < 1 || num >= 100) in acpi_pad_rrtime_store()
281 round_robin_time = num; in acpi_pad_rrtime_store()
298 unsigned long num; in acpi_pad_idlepct_store() local
[all …]
/drivers/media/dvb-frontends/
Ddibx000_common.c208 …tic int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio12() argument
215 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio12()
227 return num; in dibx000_i2c_master_xfer_gpio12()
230 …tic int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) in dibx000_i2c_master_xfer_gpio34() argument
237 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio34()
249 return num; in dibx000_i2c_master_xfer_gpio34()
285 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer() argument
290 if (num > 32) { in dibx000_i2c_gated_gpio67_xfer()
292 Maximum is 32", __func__, num); in dibx000_i2c_gated_gpio67_xfer()
303 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer()
[all …]
/drivers/mfd/
Domap-usb-tll.c59 #define OMAP_TLL_CHANNEL_CONF(num) (0x040 + 0x004 * num) argument
82 #define OMAP_TLL_ULPI_FUNCTION_CTRL(num) (0x804 + 0x100 * num) argument
83 #define OMAP_TLL_ULPI_INTERFACE_CTRL(num) (0x807 + 0x100 * num) argument
84 #define OMAP_TLL_ULPI_OTG_CTRL(num) (0x80A + 0x100 * num) argument
85 #define OMAP_TLL_ULPI_INT_EN_RISE(num) (0x80D + 0x100 * num) argument
86 #define OMAP_TLL_ULPI_INT_EN_FALL(num) (0x810 + 0x100 * num) argument
87 #define OMAP_TLL_ULPI_INT_STATUS(num) (0x813 + 0x100 * num) argument
88 #define OMAP_TLL_ULPI_INT_LATCH(num) (0x814 + 0x100 * num) argument
89 #define OMAP_TLL_ULPI_DEBUG(num) (0x815 + 0x100 * num) argument
90 #define OMAP_TLL_ULPI_SCRATCH_REGISTER(num) (0x816 + 0x100 * num) argument
/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c161 __func__, dma->num, is_dvb_tc); in netup_unidvb_tuner_ctrl()
163 mask = (dma->num == 0) ? GPIO_RFA_CTL : GPIO_RFB_CTL; in netup_unidvb_tuner_ctrl()
200 u32 irq_mask = (dma->num == 0 ? in netup_unidvb_dma_enable()
204 "%s(): DMA%d enable %d\n", __func__, dma->num, enable); in netup_unidvb_dma_enable()
387 int num) in netup_unidvb_dvb_init() argument
399 if (num < 0 || num > 1) { in netup_unidvb_dvb_init()
401 "%s(): unable to init DVB bus %d\n", __func__, num); in netup_unidvb_dvb_init()
404 mutex_init(&ndev->frontends[num].lock); in netup_unidvb_dvb_init()
405 INIT_LIST_HEAD(&ndev->frontends[num].felist); in netup_unidvb_dvb_init()
408 if (vb2_dvb_alloc_frontend(&ndev->frontends[num], i+1) in netup_unidvb_dvb_init()
[all …]
/drivers/thermal/qcom/
Dtsens-common.c57 int num, den; in compute_intercept_slope() local
70 num = p2[i] - p1[i]; in compute_intercept_slope()
71 num *= SLOPE_FACTOR; in compute_intercept_slope()
73 tmdev->sensor[i].slope = num / den; in compute_intercept_slope()
85 int degc, num, den; in code_to_degc() local
87 num = (adc_code * SLOPE_FACTOR) - s->offset; in code_to_degc()
90 if (num > 0) in code_to_degc()
91 degc = num + (den / 2); in code_to_degc()
92 else if (num < 0) in code_to_degc()
93 degc = num - (den / 2); in code_to_degc()
[all …]
/drivers/media/pci/mantis/
Dmantis_evm.c50 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): CAM Plugin", mantis->num); in mantis_hifevm_work()
59 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): CAM Unplug", mantis->num); in mantis_hifevm_work()
69 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Ext IRQ", mantis->num); in mantis_hifevm_work()
72 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Smart Buffer Timeout", mantis->num); in mantis_hifevm_work()
75 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Alignment Error", mantis->num); in mantis_hifevm_work()
78 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Smart Buffer Overflow", mantis->num); in mantis_hifevm_work()
81 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Smart Buffer Read Ready", mantis->num); in mantis_hifevm_work()
84 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): GPIF IRQ", mantis->num); in mantis_hifevm_work()
87 dprintk(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Smart Buffer Empty", mantis->num); in mantis_hifevm_work()
90 …k(MANTIS_DEBUG, 1, "Event Mgr: Adapter(%d) Slot(0): Smart Buffer operation complete", mantis->num); in mantis_hifevm_work()
/drivers/net/
DSpace.c144 int num; in net_olddevs_init() local
147 for (num = 0; num < 8; ++num) in net_olddevs_init()
148 sbni_probe(num); in net_olddevs_init()
150 for (num = 0; num < 8; ++num) in net_olddevs_init()
151 ethif_probe2(num); in net_olddevs_init()
/drivers/net/ethernet/pasemi/
Dpasemi_mac.h105 #define TX_DESC(tx, num) ((tx)->chan.ring_virt[(num) & (TX_RING_SIZE-1)]) argument
106 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)]) argument
107 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)]) argument
108 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)]) argument
109 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)]) argument
110 #define CS_DESC(cs, num) ((cs)->chan.ring_virt[(num) & (CS_RING_SIZE-1)]) argument
/drivers/net/ethernet/sfc/
Dmcdi_pcol.h748 #define FCDI_EXTENDED_EVENT_PPS_LEN(num) (8+8*(num)) argument
872 #define MC_CMD_READ32_OUT_LEN(num) (0+4*(num)) argument
890 #define MC_CMD_WRITE32_IN_LEN(num) (4+4*(num)) argument
1233 #define MC_CMD_PTP_IN_TRANSMIT_LEN(num) (12+1*(num)) argument
1323 #define MC_CMD_PTP_IN_FPGAWRITE_LEN(num) (12+1*(num)) argument
1550 #define MC_CMD_PTP_OUT_SYNCHRONIZE_LEN(num) (0+20*(num)) argument
1620 #define MC_CMD_PTP_OUT_FPGAREAD_LEN(num) (0+1*(num)) argument
1728 #define MC_CMD_CSR_READ32_OUT_LEN(num) (0+4*(num)) argument
1747 #define MC_CMD_CSR_WRITE32_IN_LEN(num) (8+4*(num)) argument
1819 #define MC_CMD_STACKINFO_OUT_LEN(num) (0+12*(num)) argument
[all …]
/drivers/isdn/mISDN/
Ddsp_audio.c308 int num[] = { 110, 125, 150, 175, 200, 300, 400, 500 }; in dsp_audio_generate_volume_changes() local
314 (dsp_audio_law_to_s32[i] * denum[7] / num[7]) & 0xffff]; in dsp_audio_generate_volume_changes()
316 (dsp_audio_law_to_s32[i] * denum[6] / num[6]) & 0xffff]; in dsp_audio_generate_volume_changes()
318 (dsp_audio_law_to_s32[i] * denum[5] / num[5]) & 0xffff]; in dsp_audio_generate_volume_changes()
320 (dsp_audio_law_to_s32[i] * denum[4] / num[4]) & 0xffff]; in dsp_audio_generate_volume_changes()
322 (dsp_audio_law_to_s32[i] * denum[3] / num[3]) & 0xffff]; in dsp_audio_generate_volume_changes()
324 (dsp_audio_law_to_s32[i] * denum[2] / num[2]) & 0xffff]; in dsp_audio_generate_volume_changes()
326 (dsp_audio_law_to_s32[i] * denum[1] / num[1]) & 0xffff]; in dsp_audio_generate_volume_changes()
328 (dsp_audio_law_to_s32[i] * denum[0] / num[0]) & 0xffff]; in dsp_audio_generate_volume_changes()
329 sample = dsp_audio_law_to_s32[i] * num[0] / denum[0]; in dsp_audio_generate_volume_changes()
[all …]

12345678910>>...45