Home
last modified time | relevance | path

Searched refs:setup (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/drivers/gpu/drm/vc4/
Dvc4_render_cl.c56 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/net/ethernet/cavium/liquidio/
Docteon_nic.h121 union octnic_cmd_setup *setup, u32 tag) in octnet_prepare_pci_cmd_o2() argument
140 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; in octnet_prepare_pci_cmd_o2()
150 if (!setup->s.gather) { in octnet_prepare_pci_cmd_o2()
151 ih2->dlengsz = setup->s.u.datasize; in octnet_prepare_pci_cmd_o2()
154 ih2->dlengsz = setup->s.u.gatherptrs; in octnet_prepare_pci_cmd_o2()
164 packet_params.s.ip_csum = setup->s.ip_csum; in octnet_prepare_pci_cmd_o2()
165 packet_params.s.transport_csum = setup->s.transport_csum; in octnet_prepare_pci_cmd_o2()
166 packet_params.s.tnl_csum = setup->s.tnl_csum; in octnet_prepare_pci_cmd_o2()
167 packet_params.s.tsflag = setup->s.timestamp; in octnet_prepare_pci_cmd_o2()
175 union octnic_cmd_setup *setup, u32 tag) in octnet_prepare_pci_cmd_o3() argument
[all …]
/drivers/clk/imx/
Dclk-sscg-pll.c90 struct clk_sscg_pll_setup setup; member
112 static int clk_sscg_pll2_check_match(struct clk_sscg_pll_setup *setup, in clk_sscg_pll2_check_match() argument
120 memcpy(setup, temp_setup, sizeof(struct clk_sscg_pll_setup)); in clk_sscg_pll2_check_match()
128 static int clk_sscg_divq_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divq_lookup() argument
144 ret = clk_sscg_pll2_check_match(setup, temp_setup); in clk_sscg_divq_lookup()
155 static int clk_sscg_divf2_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divf2_lookup() argument
162 ret = clk_sscg_divq_lookup(setup, temp_setup); in clk_sscg_divf2_lookup()
170 static int clk_sscg_divr2_lookup(struct clk_sscg_pll_setup *setup, in clk_sscg_divr2_lookup() argument
181 ret = clk_sscg_divf2_lookup(setup, temp_setup); in clk_sscg_divr2_lookup()
190 static int clk_sscg_pll2_find_setup(struct clk_sscg_pll_setup *setup, in clk_sscg_pll2_find_setup() argument
[all …]
/drivers/scsi/
Daha152x.c715 struct Scsi_Host *aha152x_probe_one(struct aha152x_setup *setup) in aha152x_probe_one() argument
731 shpnt->io_port = setup->io_port; in aha152x_probe_one()
733 shpnt->irq = setup->irq; in aha152x_probe_one()
735 if (!setup->tc1550) { in aha152x_probe_one()
736 HOSTIOPORT0 = setup->io_port; in aha152x_probe_one()
737 HOSTIOPORT1 = setup->io_port; in aha152x_probe_one()
739 HOSTIOPORT0 = setup->io_port+0x10; in aha152x_probe_one()
740 HOSTIOPORT1 = setup->io_port-0x10; in aha152x_probe_one()
744 RECONNECT = setup->reconnect; in aha152x_probe_one()
745 SYNCHRONOUS = setup->synchronous; in aha152x_probe_one()
[all …]
/drivers/acpi/
Dacpi_apd.c34 int (*setup)(struct apd_private_data *pdata); member
108 .setup = acpi_apd_setup,
113 .setup = acpi_apd_setup,
125 .setup = acpi_apd_setup,
131 .setup = fch_misc_setup,
137 .setup = acpi_apd_setup,
142 .setup = acpi_apd_setup,
147 .setup = acpi_apd_setup,
152 .setup = acpi_apd_setup,
157 .setup = acpi_apd_setup,
[all …]
/drivers/usb/mtu3/
Dmtu3_gadget_ep0.c63 forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in forward_to_driver() argument
73 ret = mtu->gadget_driver->setup(&mtu->g, setup); in forward_to_driver()
185 static int ep0_set_sel(struct mtu3 *mtu, struct usb_ctrlrequest *setup) in ep0_set_sel() argument
188 u16 length = le16_to_cpu(setup->wLength); in ep0_set_sel()
206 ep0_get_status(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in ep0_get_status() argument
214 switch (setup->bRequestType & USB_RECIP_MASK) { in ep0_get_status()
231 epnum = (u8) le16_to_cpu(setup->wIndex); in ep0_get_status()
274 static int handle_test_mode(struct mtu3 *mtu, struct usb_ctrlrequest *setup) in handle_test_mode() argument
280 switch (le16_to_cpu(setup->wIndex) >> 8) { in handle_test_mode()
324 struct usb_ctrlrequest *setup, bool set) in ep0_handle_feature_dev() argument
[all …]
Dmtu3_trace.h91 TP_PROTO(struct usb_ctrlrequest *setup),
92 TP_ARGS(setup),
101 __entry->bRequestType = setup->bRequestType;
102 __entry->bRequest = setup->bRequest;
103 __entry->wValue = le16_to_cpu(setup->wValue);
104 __entry->wIndex = le16_to_cpu(setup->wIndex);
105 __entry->wLength = le16_to_cpu(setup->wLength);
114 TP_PROTO(struct usb_ctrlrequest *setup),
115 TP_ARGS(setup)
/drivers/memory/
Dstm32-fmc2-ebi.c171 u32 (*calculate)(struct stm32_fmc2_ebi *ebi, int cs, u32 setup);
174 int cs, u32 setup);
295 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clock_cycles() argument
300 return DIV_ROUND_UP(setup * 1000, hclkp); in stm32_fmc2_ebi_ns_to_clock_cycles()
304 int cs, u32 setup) in stm32_fmc2_ebi_ns_to_clk_period() argument
306 u32 nb_clk_cycles = stm32_fmc2_ebi_ns_to_clock_cycles(ebi, cs, setup); in stm32_fmc2_ebi_ns_to_clk_period()
344 int cs, u32 setup) in stm32_fmc2_ebi_set_bit_field() argument
354 setup ? prop->reg_mask : 0); in stm32_fmc2_ebi_set_bit_field()
361 int cs, u32 setup) in stm32_fmc2_ebi_set_trans_type() argument
373 switch (setup) { in stm32_fmc2_ebi_set_trans_type()
[all …]
/drivers/net/wireless/intersil/p54/
Dfwio.c318 struct p54_setup_mac *setup; in p54_setup_mac() local
321 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*setup), in p54_setup_mac()
326 setup = skb_put(skb, sizeof(*setup)); in p54_setup_mac()
358 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac()
359 memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN); in p54_setup_mac()
360 memcpy(setup->bssid, priv->bssid, ETH_ALEN); in p54_setup_mac()
361 setup->rx_antenna = 2 & priv->rx_diversity_mask; /* automatic */ in p54_setup_mac()
362 setup->rx_align = 0; in p54_setup_mac()
364 setup->v1.basic_rate_mask = cpu_to_le32(priv->basic_rate_mask); in p54_setup_mac()
365 memset(setup->v1.rts_rates, 0, 8); in p54_setup_mac()
[all …]
/drivers/acpi/acpica/
Devhandler.c331 acpi_adr_space_setup setup, void *context) in acpi_ev_install_space_handler() argument
359 setup = acpi_ev_system_memory_region_setup; in acpi_ev_install_space_handler()
365 setup = acpi_ev_io_space_region_setup; in acpi_ev_install_space_handler()
371 setup = acpi_ev_pci_config_region_setup; in acpi_ev_install_space_handler()
377 setup = acpi_ev_cmos_region_setup; in acpi_ev_install_space_handler()
383 setup = acpi_ev_pci_bar_region_setup; in acpi_ev_install_space_handler()
389 setup = NULL; in acpi_ev_install_space_handler()
401 if (!setup) { in acpi_ev_install_space_handler()
402 setup = acpi_ev_default_region_setup; in acpi_ev_install_space_handler()
505 handler_obj->address_space.setup = setup; in acpi_ev_install_space_handler()
/drivers/usb/usbip/
Dvudc_transfer.c59 struct usb_ctrlrequest *setup, in handle_control_request() argument
67 w_index = le16_to_cpu(setup->wIndex); in handle_control_request()
68 w_value = le16_to_cpu(setup->wValue); in handle_control_request()
69 switch (setup->bRequest) { in handle_control_request()
71 if (setup->bRequestType != DEV_REQUEST) in handle_control_request()
78 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request()
99 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request()
112 if (setup->bRequestType == DEV_REQUEST) { in handle_control_request()
132 } else if (setup->bRequestType == EP_REQUEST) { in handle_control_request()
146 if (setup->bRequestType == DEV_INREQUEST in handle_control_request()
[all …]
/drivers/tty/serial/8250/
D8250_pci.c41 int (*setup)(struct serial_private *, member
2160 .setup = addidata_apci7800_setup,
2171 .setup = afavlab_setup,
2182 .setup = pci_hp_diva_setup,
2192 .setup = pci_hp_diva_setup,
2203 .setup = pci_default_setup,
2210 .setup = skip_tx_en_setup,
2217 .setup = skip_tx_en_setup,
2224 .setup = skip_tx_en_setup,
2231 .setup = ce4100_serial_setup,
[all …]
/drivers/hwmon/
Dshtc1.c64 struct shtc1_platform_data setup; member
87 if (!data->setup.blocking_io) in shtc1_update_values()
172 if (data->setup.high_precision) { in shtc1_select_command()
173 data->command = data->setup.blocking_io ? in shtc1_select_command()
180 data->command = data->setup.blocking_io ? in shtc1_select_command()
234 data->setup.blocking_io = false; in shtc1_probe()
235 data->setup.high_precision = true; in shtc1_probe()
240 data->setup.blocking_io = of_property_read_bool(np, "sensirion,blocking-io"); in shtc1_probe()
241 data->setup.high_precision = !of_property_read_bool(np, "sensicon,low-precision"); in shtc1_probe()
244 data->setup = *(struct shtc1_platform_data *)dev->platform_data; in shtc1_probe()
/drivers/net/ethernet/stmicro/stmmac/
Dhwif.c104 int (*setup)(struct stmmac_priv *priv); member
124 .setup = dwmac100_setup,
142 .setup = dwmac1000_setup,
160 .setup = dwmac4_setup,
178 .setup = dwmac4_setup,
196 .setup = dwmac4_setup,
214 .setup = dwmac4_setup,
233 .setup = dwxgmac2_setup,
252 .setup = dwxlgmac2_setup,
288 if (priv->plat->setup) { in stmmac_hwif_init()
[all …]
/drivers/net/arcnet/
Dcom20020.c102 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/usb/gadget/udc/
Dmax3420_udc.c176 struct usb_ctrlrequest setup; member
542 switch (udc->setup.bRequestType & USB_RECIP_MASK) { in max3420_getstatus()
549 if (udc->driver->setup(&udc->gadget, &udc->setup) < 0) in max3420_getstatus()
553 ep = &udc->ep[udc->setup.wIndex & USB_ENDPOINT_NUMBER_MASK]; in max3420_getstatus()
554 if (udc->setup.wIndex & USB_DIR_IN) { in max3420_getstatus()
580 int set = udc->setup.bRequest == USB_REQ_SET_FEATURE; in max3420_set_clear_feature()
584 switch (udc->setup.bRequestType) { in max3420_set_clear_feature()
586 if (udc->setup.wValue != USB_DEVICE_REMOTE_WAKEUP) in max3420_set_clear_feature()
589 if (udc->setup.bRequest == USB_REQ_SET_FEATURE) in max3420_set_clear_feature()
597 if (udc->setup.wValue != USB_ENDPOINT_HALT) in max3420_set_clear_feature()
[all …]
Dmv_udc_core.c1513 static void ch9setaddress(struct mv_udc *udc, struct usb_ctrlrequest *setup) in ch9setaddress() argument
1515 udc->dev_addr = (u8)setup->wValue; in ch9setaddress()
1525 struct usb_ctrlrequest *setup) in ch9getstatus() argument
1530 if ((setup->bRequestType & (USB_DIR_IN | USB_TYPE_MASK)) in ch9getstatus()
1534 if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) { in ch9getstatus()
1537 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1541 } else if ((setup->bRequestType & USB_RECIP_MASK) in ch9getstatus()
1545 ep_num = setup->wIndex & USB_ENDPOINT_NUMBER_MASK; in ch9getstatus()
1546 direction = (setup->wIndex & USB_ENDPOINT_DIR_MASK) in ch9getstatus()
1559 static void ch9clearfeature(struct mv_udc *udc, struct usb_ctrlrequest *setup) in ch9clearfeature() argument
[all …]
Dudc-xilinx.c181 struct usb_ctrlrequest setup; member
1020 if (udc->setup.bRequestType & USB_DIR_IN) { in __xudc_ep0_queue()
1031 if (udc->setup.wLength) { in __xudc_ep0_queue()
1608 switch (udc->setup.bRequestType & USB_RECIP_MASK) { in xudc_getstatus()
1618 epnum = udc->setup.wIndex & USB_ENDPOINT_NUMBER_MASK; in xudc_getstatus()
1624 if (udc->setup.wIndex & USB_DIR_IN) { in xudc_getstatus()
1662 int flag = (udc->setup.bRequest == USB_REQ_SET_FEATURE ? 1 : 0); in xudc_set_clear_feature()
1665 switch (udc->setup.bRequestType) { in xudc_set_clear_feature()
1667 switch (udc->setup.wValue) { in xudc_set_clear_feature()
1686 if (!udc->setup.wValue) { in xudc_set_clear_feature()
[all …]
/drivers/spi/
Dspi-pxa2xx-pci.c43 int (*setup)(struct pci_dev *pdev, struct pxa_spi_info *c); member
172 .setup = lpss_spi_setup,
179 .setup = lpss_spi_setup,
186 .setup = lpss_spi_setup,
193 .setup = lpss_spi_setup,
200 .setup = mrfld_spi_setup,
211 .setup = lpss_spi_setup,
218 .setup = lpss_spi_setup,
244 if (c->setup) { in pxa2xx_spi_pci_probe()
245 ret = c->setup(dev, c); in pxa2xx_spi_pci_probe()
Dspi-dw-pci.c28 int (*setup)(struct dw_spi *); member
64 .setup = spi_mid_init,
70 .setup = spi_mid_init,
76 .setup = spi_generic_init,
121 if (desc->setup) { in spi_pci_probe()
122 ret = desc->setup(dws); in spi_pci_probe()
/drivers/i2c/busses/
Di2c-stm32f7.c291 struct i2c_smbus_alert_setup setup; member
340 struct stm32f7_i2c_setup setup; member
441 struct stm32f7_i2c_setup *setup, in stm32f7_i2c_compute_timing() argument
447 setup->clock_src); in stm32f7_i2c_compute_timing()
449 setup->speed_freq); in stm32f7_i2c_compute_timing()
462 specs = stm32f7_get_specs(setup->speed_freq); in stm32f7_i2c_compute_timing()
465 setup->speed_freq); in stm32f7_i2c_compute_timing()
469 if ((setup->rise_time > specs->rise_max) || in stm32f7_i2c_compute_timing()
470 (setup->fall_time > specs->fall_max)) { in stm32f7_i2c_compute_timing()
473 setup->rise_time, specs->rise_max, in stm32f7_i2c_compute_timing()
[all …]
/drivers/net/ethernet/dec/tulip/
Dmedia.c190 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()
/drivers/clk/ti/
Dmux.c230 struct clk_hw *ti_clk_build_component_mux(struct ti_clk_mux *setup) in ti_clk_build_component_mux() argument
235 if (!setup) in ti_clk_build_component_mux()
242 mux->shift = setup->bit_shift; in ti_clk_build_component_mux()
245 mux->reg.index = setup->module; in ti_clk_build_component_mux()
246 mux->reg.offset = setup->reg; in ti_clk_build_component_mux()
248 if (setup->flags & CLKF_INDEX_STARTS_AT_ONE) in ti_clk_build_component_mux()
251 num_parents = setup->num_parents; in ti_clk_build_component_mux()
/drivers/ata/
Dpata_cmd640.c92 if (t.setup > 4) in cmd640_set_piomode()
93 t.setup = 0xC0; in cmd640_set_piomode()
95 t.setup = setup_data[t.setup]; in cmd640_set_piomode()
103 reg |= t.setup; in cmd640_set_piomode()
114 reg |= t.setup; in cmd640_set_piomode()
/drivers/mfd/
Datmel-smc.c152 conf->setup &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_setup()
153 conf->setup |= val << shift; in atmel_smc_cs_conf_set_setup()
248 regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup); in atmel_smc_cs_conf_apply()
269 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply()
289 regmap_read(regmap, ATMEL_SMC_SETUP(cs), &conf->setup); in atmel_smc_cs_conf_get()
310 regmap_read(regmap, ATMEL_HSMC_SETUP(layout, cs), &conf->setup); in atmel_hsmc_cs_conf_get()

12345678910>>...22