/drivers/gpu/drm/vc4/ |
D | vc4_render_cl.c | 56 static inline void rcl_u8(struct vc4_rcl_setup *setup, u8 val) in rcl_u8() argument 58 *(u8 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u8() 59 setup->next_offset += 1; in rcl_u8() 62 static inline void rcl_u16(struct vc4_rcl_setup *setup, u16 val) in rcl_u16() argument 64 *(u16 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u16() 65 setup->next_offset += 2; in rcl_u16() 68 static inline void rcl_u32(struct vc4_rcl_setup *setup, u32 val) in rcl_u32() argument 70 *(u32 *)(setup->rcl->vaddr + setup->next_offset) = val; in rcl_u32() 71 setup->next_offset += 4; in rcl_u32() 80 static void vc4_store_before_load(struct vc4_rcl_setup *setup) in vc4_store_before_load() argument [all …]
|
/drivers/i2c/busses/ |
D | i2c-stm32f7.c | 218 struct stm32f7_i2c_setup setup; member 286 struct stm32f7_i2c_setup *setup, in stm32f7_i2c_compute_timing() argument 291 setup->clock_src); in stm32f7_i2c_compute_timing() 293 setup->speed_freq); in stm32f7_i2c_compute_timing() 306 if (setup->speed >= STM32_I2C_SPEED_END) { in stm32f7_i2c_compute_timing() 308 setup->speed, STM32_I2C_SPEED_END - 1); in stm32f7_i2c_compute_timing() 312 if ((setup->rise_time > i2c_specs[setup->speed].rise_max) || in stm32f7_i2c_compute_timing() 313 (setup->fall_time > i2c_specs[setup->speed].fall_max)) { in stm32f7_i2c_compute_timing() 316 setup->rise_time, i2c_specs[setup->speed].rise_max, in stm32f7_i2c_compute_timing() 317 setup->fall_time, i2c_specs[setup->speed].fall_max); in stm32f7_i2c_compute_timing() [all …]
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_nic.h | 128 union octnic_cmd_setup *setup, u32 tag) in octnet_prepare_pci_cmd_o2() argument 147 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; in octnet_prepare_pci_cmd_o2() 157 if (!setup->s.gather) { in octnet_prepare_pci_cmd_o2() 158 ih2->dlengsz = setup->s.u.datasize; in octnet_prepare_pci_cmd_o2() 161 ih2->dlengsz = setup->s.u.gatherptrs; in octnet_prepare_pci_cmd_o2() 171 packet_params.s.ip_csum = setup->s.ip_csum; in octnet_prepare_pci_cmd_o2() 172 packet_params.s.transport_csum = setup->s.transport_csum; in octnet_prepare_pci_cmd_o2() 173 packet_params.s.tnl_csum = setup->s.tnl_csum; in octnet_prepare_pci_cmd_o2() 174 packet_params.s.tsflag = setup->s.timestamp; in octnet_prepare_pci_cmd_o2() 182 union octnic_cmd_setup *setup, u32 tag) in octnet_prepare_pci_cmd_o3() argument [all …]
|
/drivers/scsi/ |
D | aha152x.c | 723 struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup) in aha152x_probe_one() argument 739 shpnt->io_port = setup->io_port; in aha152x_probe_one() 741 shpnt->irq = setup->irq; in aha152x_probe_one() 743 if (!setup->tc1550) { in aha152x_probe_one() 744 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one() 745 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one() 747 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one() 748 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one() 752 RECONNECT = setup->reconnect; in aha152x_probe_one() 753 SYNCHRONOUS = setup->synchronous; in aha152x_probe_one() [all …]
|
/drivers/usb/mtu3/ |
D | mtu3_gadget_ep0.c | 69 forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in forward_to_driver() argument 79 ret = mtu->gadget_driver->setup(&mtu->g, setup); in forward_to_driver() 182 static int ep0_set_sel(struct mtu3 *mtu, struct usb_ctrlrequest *setup) in ep0_set_sel() argument 185 u16 length = le16_to_cpu(setup->wLength); in ep0_set_sel() 203 ep0_get_status(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in ep0_get_status() argument 211 switch (setup->bRequestType & USB_RECIP_MASK) { in ep0_get_status() 228 epnum = (u8) le16_to_cpu(setup->wIndex); in ep0_get_status() 271 static int handle_test_mode(struct mtu3 *mtu, struct usb_ctrlrequest *setup) in handle_test_mode() argument 276 switch (le16_to_cpu(setup->wIndex) >> 8) { in handle_test_mode() 313 struct usb_ctrlrequest *setup, bool set) in ep0_handle_feature_dev() argument [all …]
|
/drivers/clk/ti/ |
D | clk.c | 296 struct clk __init *ti_clk_register_clk(struct ti_clk *setup) in ti_clk_register_clk() argument 304 if (setup->clk) in ti_clk_register_clk() 305 return setup->clk; in ti_clk_register_clk() 307 switch (setup->type) { in ti_clk_register_clk() 309 fixed = setup->data; in ti_clk_register_clk() 311 clk = clk_register_fixed_rate(NULL, setup->name, NULL, 0, in ti_clk_register_clk() 314 ret = ti_clk_add_alias(NULL, clk, setup->name); in ti_clk_register_clk() 322 clk = ti_clk_register_mux(setup); in ti_clk_register_clk() 325 clk = ti_clk_register_divider(setup); in ti_clk_register_clk() 328 clk = ti_clk_register_composite(setup); in ti_clk_register_clk() [all …]
|
D | gate.c | 132 struct clk *ti_clk_register_gate(struct ti_clk *setup) in ti_clk_register_gate() argument 141 gate = setup->data; in ti_clk_register_gate() 144 return ti_clk_register_interface(setup); in ti_clk_register_gate() 173 return _register_gate(NULL, setup->name, gate->parent, flags, in ti_clk_register_gate() 178 struct clk_hw *ti_clk_build_component_gate(struct ti_clk_gate *setup) in ti_clk_build_component_gate() argument 184 if (!setup) in ti_clk_build_component_gate() 192 reg->index = setup->module; in ti_clk_build_component_gate() 193 reg->offset = setup->reg; in ti_clk_build_component_gate() 195 gate->enable_bit = setup->bit_shift; in ti_clk_build_component_gate() 197 if (setup->flags & CLKF_NO_WAIT) in ti_clk_build_component_gate() [all …]
|
D | mux.c | 138 struct clk *ti_clk_register_mux(struct ti_clk *setup) in ti_clk_register_mux() argument 146 mux = setup->data; in ti_clk_register_mux() 164 return _register_mux(NULL, setup->name, mux->parents, mux->num_parents, in ti_clk_register_mux() 226 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup) in ti_clk_build_component_mux() argument 231 if (!setup) in ti_clk_build_component_mux() 238 mux->shift = setup->bit_shift; in ti_clk_build_component_mux() 240 mux->reg.index = setup->module; in ti_clk_build_component_mux() 241 mux->reg.offset = setup->reg; in ti_clk_build_component_mux() 243 if (setup->flags & CLKF_INDEX_STARTS_AT_ONE) in ti_clk_build_component_mux() 246 num_parents = setup->num_parents; in ti_clk_build_component_mux()
|
D | clock.h | 239 struct clk *ti_clk_register_gate(struct ti_clk *setup); 240 struct clk *ti_clk_register_interface(struct ti_clk *setup); 241 struct clk *ti_clk_register_mux(struct ti_clk *setup); 242 struct clk *ti_clk_register_divider(struct ti_clk *setup); 243 struct clk *ti_clk_register_composite(struct ti_clk *setup); 244 struct clk *ti_clk_register_dpll(struct ti_clk *setup); 250 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup); 251 struct clk_hw *ti_clk_build_component_gate(struct ti_clk_gate *setup); 252 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup); 259 struct clk *ti_clk_register_clk(struct ti_clk *setup);
|
D | divider.c | 389 _get_div_table_from_setup(struct ti_clk_divider *setup, u8 *width) in _get_div_table_from_setup() argument 393 ti_clk_parse_divider_data(setup->dividers, setup->num_dividers, in _get_div_table_from_setup() 394 setup->max_div, setup->flags, width, in _get_div_table_from_setup() 400 struct clk_hw *ti_clk_build_component_div(struct ti_clk_divider *setup) in ti_clk_build_component_div() argument 405 if (!setup) in ti_clk_build_component_div() 413 reg->index = setup->module; in ti_clk_build_component_div() 414 reg->offset = setup->reg; in ti_clk_build_component_div() 416 if (setup->flags & CLKF_INDEX_STARTS_AT_ONE) in ti_clk_build_component_div() 419 if (setup->flags & CLKF_INDEX_POWER_OF_TWO) in ti_clk_build_component_div() 422 div->table = _get_div_table_from_setup(setup, &div->width); in ti_clk_build_component_div() [all …]
|
/drivers/isdn/gigaset/ |
D | i4l.c | 223 cntrl->parm.setup.phone, cntrl->parm.setup.eazmsn, in command_from_LL() 224 cntrl->parm.setup.si1, cntrl->parm.setup.si2); in command_from_LL() 253 l = 3 + strlen(cntrl->parm.setup.phone); in command_from_LL() 257 if (cntrl->parm.setup.phone[0] == '*' && in command_from_LL() 258 cntrl->parm.setup.phone[1] == '*') { in command_from_LL() 264 "D%s\r", cntrl->parm.setup.phone + 2); in command_from_LL() 270 "D%s\r", cntrl->parm.setup.phone); in command_from_LL() 273 l = strlen(cntrl->parm.setup.eazmsn); in command_from_LL() 280 cntrl->parm.setup.eazmsn); in command_from_LL() 283 switch (cntrl->parm.setup.si1) { in command_from_LL() [all …]
|
/drivers/acpi/ |
D | acpi_apd.c | 46 int (*setup)(struct apd_private_data *pdata); member 76 .setup = acpi_apd_setup, 81 .setup = acpi_apd_setup, 93 .setup = acpi_apd_setup, 101 .setup = acpi_apd_setup, 106 .setup = acpi_apd_setup, 111 .setup = acpi_apd_setup, 116 .setup = acpi_apd_setup, 151 if (dev_desc->setup) { in acpi_apd_create_device() 152 ret = dev_desc->setup(pdata); in acpi_apd_create_device()
|
/drivers/net/wireless/intersil/p54/ |
D | fwio.c | 321 struct p54_setup_mac *setup; in p54_setup_mac() local 324 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*setup), in p54_setup_mac() 329 setup = skb_put(skb, sizeof(*setup)); in p54_setup_mac() 361 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac() 362 memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN); in p54_setup_mac() 363 memcpy(setup->bssid, priv->bssid, ETH_ALEN); in p54_setup_mac() 364 setup->rx_antenna = 2 & priv->rx_diversity_mask; /* automatic */ in p54_setup_mac() 365 setup->rx_align = 0; in p54_setup_mac() 367 setup->v1.basic_rate_mask = cpu_to_le32(priv->basic_rate_mask); in p54_setup_mac() 368 memset(setup->v1.rts_rates, 0, 8); in p54_setup_mac() [all …]
|
/drivers/acpi/acpica/ |
D | evhandler.c | 365 acpi_adr_space_setup setup, void *context) in acpi_ev_install_space_handler() argument 393 setup = acpi_ev_system_memory_region_setup; in acpi_ev_install_space_handler() 399 setup = acpi_ev_io_space_region_setup; in acpi_ev_install_space_handler() 405 setup = acpi_ev_pci_config_region_setup; in acpi_ev_install_space_handler() 411 setup = acpi_ev_cmos_region_setup; in acpi_ev_install_space_handler() 417 setup = acpi_ev_pci_bar_region_setup; in acpi_ev_install_space_handler() 423 setup = NULL; in acpi_ev_install_space_handler() 435 if (!setup) { in acpi_ev_install_space_handler() 436 setup = acpi_ev_default_region_setup; in acpi_ev_install_space_handler() 532 handler_obj->address_space.setup = setup; in acpi_ev_install_space_handler()
|
/drivers/usb/usbip/ |
D | vudc_transfer.c | 71 struct usb_ctrlrequest *setup, in handle_control_request() argument 79 w_index = le16_to_cpu(setup->wIndex); in handle_control_request() 80 w_value = le16_to_cpu(setup->wValue); in handle_control_request() 81 switch (setup->bRequest) { in handle_control_request() 83 if (setup->bRequestType != DEV_REQUEST) in handle_control_request() 90 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request() 111 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request() 124 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request() 144 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request() 158 if (setup->bRequestType == DEV_INREQUEST in handle_control_request() [all …]
|
/drivers/i2c/ |
D | i2c-smbus.c | 139 struct i2c_smbus_alert_setup *setup = dev_get_platdata(&ara->dev); in smbalert_probe() local 149 alert->alert_edge_triggered = setup->alert_edge_triggered; in smbalert_probe() 150 alert->irq = setup->irq; in smbalert_probe() 154 if (setup->irq > 0) { in smbalert_probe() 155 res = devm_request_irq(&ara->dev, setup->irq, smbalert_irq, in smbalert_probe() 163 setup->alert_edge_triggered ? "edge" : "level"); in smbalert_probe() 213 struct i2c_smbus_alert_setup *setup) in i2c_setup_smbus_alert() argument 217 .platform_data = setup, in i2c_setup_smbus_alert()
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 80 strlcpy(cs->ics.parm.setup.phone, cs->deflect_dest, sizeof(cs->ics.parm.setup.phone)); in deflect_timer_expire() 81 strcpy(cs->ics.parm.setup.eazmsn, "Testtext delayed"); in deflect_timer_expire() 251 strlcpy(cs->ics.parm.setup.phone, to_nr, sizeof(cs->ics.parm.setup.phone)); in deflect_extern_action() 252 strcpy(cs->ics.parm.setup.eazmsn, "Testtext manual"); in deflect_extern_action() 400 if ((dv->rule.si1) && (dv->rule.si1 != ic->parm.setup.si1)) in isdn_divert_icall() 402 if ((dv->rule.si2) && (dv->rule.si2 != ic->parm.setup.si2)) in isdn_divert_icall() 406 p1 = ic->parm.setup.eazmsn; in isdn_divert_icall() 422 (ic->parm.setup.phone[0])) { in isdn_divert_icall() 424 p1 = ic->parm.setup.phone; in isdn_divert_icall() 458 if (!cs->ics.parm.setup.phone[0]) strcpy(cs->ics.parm.setup.phone, "0"); in isdn_divert_icall() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | cxio_hal.c | 78 struct rdma_cq_op setup; in cxio_hal_cq_op() local 79 setup.id = cq->cqid; in cxio_hal_cq_op() 80 setup.credits = (op == CQ_CREDIT_UPDATE) ? credit : 0; in cxio_hal_cq_op() 81 setup.op = op; in cxio_hal_cq_op() 82 ret = rdev_p->t3cdev_p->ctl(rdev_p->t3cdev_p, RDMA_CQ_OP, &setup); in cxio_hal_cq_op() 126 struct rdma_cq_setup setup; in cxio_hal_clear_cq_ctx() local 127 setup.id = cqid; in cxio_hal_clear_cq_ctx() 128 setup.base_addr = 0; /* NULL address */ in cxio_hal_clear_cq_ctx() 129 setup.size = 0; /* disaable the CQ */ in cxio_hal_clear_cq_ctx() 130 setup.credits = 0; in cxio_hal_clear_cq_ctx() [all …]
|
/drivers/net/arcnet/ |
D | com20020.c | 102 lp->setup = lp->clockm ? 0 : (lp->clockp << 1); in com20020_check() 107 lp->setup = lp->setup | P1MODE; in com20020_check() 110 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_check() 226 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_found() 260 lp->setup >> 1, in com20020_found() 263 ((lp->setup & 0x0F) >> 1)]); in com20020_found() 379 if (!(lp->setup & PROMISCset)) in com20020_set_mc_list() 382 lp->setup |= PROMISCset; in com20020_set_mc_list() 383 arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG); in com20020_set_mc_list() 386 if ((lp->setup & PROMISCset)) in com20020_set_mc_list() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_pci.c | 43 int (*setup)(struct serial_private *, member 1763 .setup = addidata_apci7800_setup, 1774 .setup = afavlab_setup, 1785 .setup = pci_hp_diva_setup, 1796 .setup = pci_default_setup, 1803 .setup = skip_tx_en_setup, 1810 .setup = skip_tx_en_setup, 1817 .setup = skip_tx_en_setup, 1824 .setup = ce4100_serial_setup, 1831 .setup = kt_serial_setup, [all …]
|
/drivers/hwmon/ |
D | shtc1.c | 59 struct shtc1_platform_data setup; member 81 if (!data->setup.blocking_io) in shtc1_update_values() 166 if (data->setup.high_precision) { in shtc1_select_command() 167 data->command = data->setup.blocking_io ? in shtc1_select_command() 173 data->command = data->setup.blocking_io ? in shtc1_select_command() 214 data->setup.blocking_io = false; in shtc1_probe() 215 data->setup.high_precision = true; in shtc1_probe() 219 data->setup = *(struct shtc1_platform_data *)dev->platform_data; in shtc1_probe()
|
/drivers/net/ethernet/dec/tulip/ |
D | media.c | 190 u16 setup[5]; in tulip_select_media() local 193 setup[i] = get_u16(&p[i*2 + 1]); in tulip_select_media() 210 setup[0], setup[1]); in tulip_select_media() 212 csr13val = setup[0]; in tulip_select_media() 213 csr14val = setup[1]; in tulip_select_media() 214 csr15dir = (setup[3]<<16) | setup[2]; in tulip_select_media() 215 csr15val = (setup[4]<<16) | setup[2]; in tulip_select_media() 224 csr15dir = (setup[0]<<16) | 0x0008; in tulip_select_media() 225 csr15val = (setup[1]<<16) | 0x0008; in tulip_select_media() 240 new_csr6 = 0x82020000 | ((setup[2] & 0x71) << 18); in tulip_select_media() [all …]
|
/drivers/isdn/isdnloop/ |
D | isdnloop.c | 122 isdnloop_parse_setup(char *setup, isdn_ctrl *cmd) in isdnloop_parse_setup() argument 124 char *t = setup; in isdnloop_parse_setup() 128 strlcpy(cmd->parm.setup.phone, t, sizeof(cmd->parm.setup.phone)); in isdnloop_parse_setup() 132 cmd->parm.setup.si1 = 0; in isdnloop_parse_setup() 134 cmd->parm.setup.si1 = simple_strtoul(t, NULL, 10); in isdnloop_parse_setup() 138 cmd->parm.setup.si2 = 0; in isdnloop_parse_setup() 140 cmd->parm.setup.si2 = in isdnloop_parse_setup() 142 strlcpy(cmd->parm.setup.eazmsn, s, sizeof(cmd->parm.setup.eazmsn)); in isdnloop_parse_setup() 143 cmd->parm.setup.plan = 0; in isdnloop_parse_setup() 144 cmd->parm.setup.screen = 0; in isdnloop_parse_setup() [all …]
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_shim.c | 641 SERVICE_CREATION_T *setup) in service_alloc() argument 649 service->callback = setup->callback; in service_alloc() 650 service->callback_param = setup->callback_param; in service_alloc() 669 SERVICE_CREATION_T *setup, in vchi_service_open() argument 673 SHIM_SERVICE_T *service = service_alloc(instance, setup); in vchi_service_open() 682 params.fourcc = setup->service_id; in vchi_service_open() 685 params.version = setup->version.version; in vchi_service_open() 686 params.version_min = setup->version.version_min; in vchi_service_open() 702 SERVICE_CREATION_T *setup, in vchi_service_create() argument 706 SHIM_SERVICE_T *service = service_alloc(instance, setup); in vchi_service_create() [all …]
|
/drivers/spi/ |
D | spi-pxa2xx-pci.c | 38 int (*setup)(struct pci_dev *pdev, struct pxa_spi_info *c); member 149 .setup = lpss_spi_setup, 156 .setup = lpss_spi_setup, 163 .setup = lpss_spi_setup, 170 .setup = lpss_spi_setup, 177 .setup = mrfld_spi_setup, 188 .setup = lpss_spi_setup, 214 if (c->setup) { in pxa2xx_spi_pci_probe() 215 ret = c->setup(dev, c); in pxa2xx_spi_pci_probe()
|