/drivers/regulator/ |
D | max77686.c | 340 #define regulator_desc_ldo(num) { \ argument 341 .name = "LDO"#num, \ 342 .of_match = of_match_ptr("LDO"#num), \ 345 .id = MAX77686_LDO##num, \ 353 .vsel_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 355 .enable_reg = MAX77686_REG_LDO1CTRL1 + num - 1, \ 359 #define regulator_desc_lpm_ldo(num) { \ argument 360 .name = "LDO"#num, \ 361 .of_match = of_match_ptr("LDO"#num), \ 363 .id = MAX77686_LDO##num, \ [all …]
|
D | s2mps11.c | 261 #define regulator_desc_s2mps11_ldo(num, step) { \ argument 262 .name = "LDO"#num, \ 263 .id = S2MPS11_LDO##num, \ 270 .vsel_reg = S2MPS11_REG_L1CTRL + num - 1, \ 272 .enable_reg = S2MPS11_REG_L1CTRL + num - 1, \ 276 #define regulator_desc_s2mps11_buck1_4(num) { \ argument 277 .name = "BUCK"#num, \ 278 .id = S2MPS11_BUCK##num, \ 286 .vsel_reg = S2MPS11_REG_B1CTRL2 + (num - 1) * 2, \ 288 .enable_reg = S2MPS11_REG_B1CTRL1 + (num - 1) * 2, \ [all …]
|
D | max77802.c | 365 #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/ |
D | clk-si5351.c | 50 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/pcmcia/ |
D | rsrc_nonstatic.c | 52 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 …]
|
D | rsrc_iodyn.c | 59 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/ |
D | mthca_profile.c | 73 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/amd/amdgpu/ |
D | atombios_i2c.c | 39 u8 *buf, u8 num) in amdgpu_atombios_i2c_process_i2c_ch() argument 56 if (num > ATOM_MAX_HW_I2C_WRITE) { in amdgpu_atombios_i2c_process_i2c_ch() 57 DRM_ERROR("hw i2c: tried to write too many bytes (%d vs 3)\n", num); in amdgpu_atombios_i2c_process_i2c_ch() 65 if (num) in amdgpu_atombios_i2c_process_i2c_ch() 66 num--; in amdgpu_atombios_i2c_process_i2c_ch() 67 if (num) in amdgpu_atombios_i2c_process_i2c_ch() 68 memcpy(&out, &buf[1], num); in amdgpu_atombios_i2c_process_i2c_ch() 71 if (num > ATOM_MAX_HW_I2C_READ) { in amdgpu_atombios_i2c_process_i2c_ch() 72 DRM_ERROR("hw i2c: tried to read too many bytes (%d vs 255)\n", num); in amdgpu_atombios_i2c_process_i2c_ch() 82 args.ucTransBytes = num; in amdgpu_atombios_i2c_process_i2c_ch() [all …]
|
/drivers/gpu/drm/radeon/ |
D | atombios_i2c.c | 38 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/lguest/ |
D | interrupts_and_traps.c | 334 static bool could_be_syscall(unsigned int num) in could_be_syscall() argument 337 return num == IA32_SYSCALL_VECTOR || num == syscall_vector; in could_be_syscall() 384 bool deliver_trap(struct lg_cpu *cpu, unsigned int num) in deliver_trap() argument 390 if (num >= ARRAY_SIZE(cpu->arch.idt)) in deliver_trap() 397 if (!idt_present(cpu->arch.idt[num].a, cpu->arch.idt[num].b)) in deliver_trap() 399 push_guest_interrupt_stack(cpu, has_err(num)); in deliver_trap() 400 guest_run_interrupt(cpu, cpu->arch.idt[num].a, in deliver_trap() 401 cpu->arch.idt[num].b); in deliver_trap() 420 static bool direct_trap(unsigned int num) in direct_trap() argument 426 if (num >= FIRST_EXTERNAL_VECTOR && !could_be_syscall(num)) in direct_trap() [all …]
|
D | segments.c | 52 static bool ignored_gdt(unsigned int num) in ignored_gdt() argument 54 return (num == GDT_ENTRY_TSS in ignored_gdt() 55 || num == GDT_ENTRY_LGUEST_CS in ignored_gdt() 56 || num == GDT_ENTRY_LGUEST_DS in ignored_gdt() 57 || num == GDT_ENTRY_DOUBLEFAULT_TSS); in ignored_gdt() 182 void load_guest_gdt_entry(struct lg_cpu *cpu, u32 num, u32 lo, u32 hi) in load_guest_gdt_entry() argument 188 if (num >= ARRAY_SIZE(cpu->arch.gdt)) { in load_guest_gdt_entry() 189 kill_guest(cpu, "too many gdt entries %i", num); in load_guest_gdt_entry() 194 cpu->arch.gdt[num].a = lo; in load_guest_gdt_entry() 195 cpu->arch.gdt[num].b = hi; in load_guest_gdt_entry() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 79 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/video/fbdev/ |
D | chipsfb.c | 40 #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/leds/ |
D | leds-lp8788.c | 38 enum lp8788_isink_number num; member 44 .num = LP8788_ISINK_3, 57 cfg->num = pdata->num; in lp8788_led_init_device() 61 led->isink_num = cfg->num; in lp8788_led_init_device() 65 mask = 1 << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device() 66 val = cfg->scale << (cfg->num + LP8788_ISINK_SCALE_OFFSET); in lp8788_led_init_device() 72 addr = lp8788_iout_addr[cfg->num]; in lp8788_led_init_device() 73 mask = lp8788_iout_mask[cfg->num]; in lp8788_led_init_device() 80 enum lp8788_isink_number num, int on) in lp8788_led_enable() argument 82 u8 mask = 1 << num; in lp8788_led_enable() [all …]
|
/drivers/i2c/busses/ |
D | i2c-cros-ec-tunnel.c | 51 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/media/pci/netup_unidvb/ |
D | netup_unidvb_core.c | 152 __func__, dma->num, is_dvb_tc); in netup_unidvb_tuner_ctrl() 154 mask = (dma->num == 0) ? GPIO_RFA_CTL : GPIO_RFB_CTL; in netup_unidvb_tuner_ctrl() 186 u32 irq_mask = (dma->num == 0 ? in netup_unidvb_dma_enable() 190 "%s(): DMA%d enable %d\n", __func__, dma->num, enable); in netup_unidvb_dma_enable() 379 int num) in netup_unidvb_dvb_init() argument 383 if (num < 0 || num > 1) { in netup_unidvb_dvb_init() 385 "%s(): unable to init DVB bus %d\n", __func__, num); in netup_unidvb_dvb_init() 388 mutex_init(&ndev->frontends[num].lock); in netup_unidvb_dvb_init() 389 INIT_LIST_HEAD(&ndev->frontends[num].felist); in netup_unidvb_dvb_init() 390 if (vb2_dvb_alloc_frontend(&ndev->frontends[num], 1) == NULL || in netup_unidvb_dvb_init() [all …]
|
/drivers/acpi/ |
D | acpi_pad.c | 242 static void set_power_saving_task_num(unsigned int num) in set_power_saving_task_num() argument 244 if (num > ps_tsk_num) { in set_power_saving_task_num() 245 while (ps_tsk_num < num) { in set_power_saving_task_num() 249 } else if (num < ps_tsk_num) { in set_power_saving_task_num() 250 while (ps_tsk_num > num) in set_power_saving_task_num() 273 unsigned long num; in acpi_pad_rrtime_store() local 274 if (kstrtoul(buf, 0, &num)) in acpi_pad_rrtime_store() 276 if (num < 1 || num >= 100) in acpi_pad_rrtime_store() 279 round_robin_time = num; in acpi_pad_rrtime_store() 296 unsigned long num; in acpi_pad_idlepct_store() local [all …]
|
/drivers/i2c/muxes/ |
D | i2c-mux-pca954x.c | 193 int num, force, class; in pca954x_probe() local 227 for (num = 0; num < chips[data->type].nchans; num++) { in pca954x_probe() 233 if (num < pdata->num_modes) { in pca954x_probe() 235 force = pdata->modes[num].adap_id; in pca954x_probe() 236 class = pdata->modes[num].class; in pca954x_probe() 240 idle_disconnect_pd = pdata->modes[num].deselect_on_exit; in pca954x_probe() 243 data->virt_adaps[num] = in pca954x_probe() 245 force, num, class, pca954x_select_chan, in pca954x_probe() 249 if (data->virt_adaps[num] == NULL) { in pca954x_probe() 253 " %d as bus %d\n", num, force); in pca954x_probe() [all …]
|
/drivers/scsi/ |
D | scsi_debug.c | 946 int num, port_a; in inquiry_evpd_83() local 957 num = 8 + 16 + dev_id_str_len; in inquiry_evpd_83() 958 arr[3] = num; in inquiry_evpd_83() 959 num += 4; in inquiry_evpd_83() 962 arr[num++] = 0x1; /* binary (not necessarily sas) */ in inquiry_evpd_83() 963 arr[num++] = 0x3; /* PIV=0, lu, naa */ in inquiry_evpd_83() 964 arr[num++] = 0x0; in inquiry_evpd_83() 965 arr[num++] = 0x8; in inquiry_evpd_83() 966 arr[num++] = 0x53; /* naa-5 ieee company id=0x333333 (fake) */ in inquiry_evpd_83() 967 arr[num++] = 0x33; in inquiry_evpd_83() [all …]
|
/drivers/media/dvb-frontends/ |
D | dibx000_common.c | 202 …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 209 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio12() 221 return num; in dibx000_i2c_master_xfer_gpio12() 224 …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 231 for (msg_index = 0; msg_index < num; msg_index++) { in dibx000_i2c_master_xfer_gpio34() 243 return num; in dibx000_i2c_master_xfer_gpio34() 279 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer() argument 284 if (num > 32) { in dibx000_i2c_gated_gpio67_xfer() 286 Maximum is 32", __func__, num); in dibx000_i2c_gated_gpio67_xfer() 297 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer() [all …]
|
/drivers/mfd/ |
D | omap-usb-tll.c | 57 #define OMAP_TLL_CHANNEL_CONF(num) (0x040 + 0x004 * num) argument 80 #define OMAP_TLL_ULPI_FUNCTION_CTRL(num) (0x804 + 0x100 * num) argument 81 #define OMAP_TLL_ULPI_INTERFACE_CTRL(num) (0x807 + 0x100 * num) argument 82 #define OMAP_TLL_ULPI_OTG_CTRL(num) (0x80A + 0x100 * num) argument 83 #define OMAP_TLL_ULPI_INT_EN_RISE(num) (0x80D + 0x100 * num) argument 84 #define OMAP_TLL_ULPI_INT_EN_FALL(num) (0x810 + 0x100 * num) argument 85 #define OMAP_TLL_ULPI_INT_STATUS(num) (0x813 + 0x100 * num) argument 86 #define OMAP_TLL_ULPI_INT_LATCH(num) (0x814 + 0x100 * num) argument 87 #define OMAP_TLL_ULPI_DEBUG(num) (0x815 + 0x100 * num) argument 88 #define OMAP_TLL_ULPI_SCRATCH_REGISTER(num) (0x816 + 0x100 * num) argument
|
/drivers/net/ethernet/sfc/ |
D | mcdi_pcol.h | 729 #define FCDI_EXTENDED_EVENT_PPS_LEN(num) (8+8*(num)) argument 853 #define MC_CMD_READ32_OUT_LEN(num) (0+4*(num)) argument 871 #define MC_CMD_WRITE32_IN_LEN(num) (4+4*(num)) argument 1212 #define MC_CMD_PTP_IN_TRANSMIT_LEN(num) (12+1*(num)) argument 1302 #define MC_CMD_PTP_IN_FPGAWRITE_LEN(num) (12+1*(num)) argument 1529 #define MC_CMD_PTP_OUT_SYNCHRONIZE_LEN(num) (0+20*(num)) argument 1599 #define MC_CMD_PTP_OUT_FPGAREAD_LEN(num) (0+1*(num)) argument 1690 #define MC_CMD_CSR_READ32_OUT_LEN(num) (0+4*(num)) argument 1709 #define MC_CMD_CSR_WRITE32_IN_LEN(num) (8+4*(num)) argument 1781 #define MC_CMD_STACKINFO_OUT_LEN(num) (0+12*(num)) argument [all …]
|
/drivers/media/pci/mantis/ |
D | mantis_evm.c | 50 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/media/dvb-core/ |
D | dvbdev.c | 58 #define nums2minor(num,type,id) ((num << 6) | (id << 4) | type) argument 331 minor = nums2minor(adap->num, type, id); in dvb_register_device() 342 dvbdev, "dvb%d.%s%d", adap->num, dnames[type], id); in dvb_register_device() 345 __func__, adap->num, dnames[type], id, PTR_ERR(clsdev)); in dvb_register_device() 349 adap->num, dnames[type], id, minor, minor); in dvb_register_device() 429 static int dvbdev_check_free_adapter_num(int num) in dvbdev_check_free_adapter_num() argument 435 if (adap->num == num) in dvbdev_check_free_adapter_num() 443 int num = 0; in dvbdev_get_free_adapter_num() local 445 while (num < DVB_MAX_ADAPTERS) { in dvbdev_get_free_adapter_num() 446 if (dvbdev_check_free_adapter_num(num)) in dvbdev_get_free_adapter_num() [all …]
|
/drivers/net/ |
D | Space.c | 145 int num; in net_olddevs_init() local 148 for (num = 0; num < 8; ++num) in net_olddevs_init() 149 sbni_probe(num); in net_olddevs_init() 151 for (num = 0; num < 8; ++num) in net_olddevs_init() 152 ethif_probe2(num); in net_olddevs_init()
|