/drivers/i2c/busses/ |
D | scx200_acb.c | 80 #define ACBSDA (iface->base + 0) 81 #define ACBST (iface->base + 1) 87 #define ACBCST (iface->base + 2) 89 #define ACBCTL1 (iface->base + 3) 95 #define ACBADDR (iface->base + 4) 96 #define ACBCTL2 (iface->base + 5) 101 static void scx200_acb_machine(struct scx200_acb_iface *iface, u8 status) in scx200_acb_machine() argument 105 dev_dbg(&iface->adapter.dev, "state %s, status = 0x%02x\n", in scx200_acb_machine() 106 scx200_acb_state_name[iface->state], status); in scx200_acb_machine() 117 dev_dbg(&iface->adapter.dev, "negative ack in state %s\n", in scx200_acb_machine() [all …]
|
/drivers/most/ |
D | core.c | 49 struct most_interface *iface; member 105 if (c->iface->dma_free) in most_free_mbo_coherent() 106 c->iface->dma_free(mbo, coherent_buf_size); in most_free_mbo_coherent() 176 if (c->iface->channel_vector[i].direction & MOST_CH_RX) in available_directions_show() 178 if (c->iface->channel_vector[i].direction & MOST_CH_TX) in available_directions_show() 192 if (c->iface->channel_vector[i].data_type & MOST_CH_CONTROL) in available_datatypes_show() 194 if (c->iface->channel_vector[i].data_type & MOST_CH_ASYNC) in available_datatypes_show() 196 if (c->iface->channel_vector[i].data_type & MOST_CH_SYNC) in available_datatypes_show() 198 if (c->iface->channel_vector[i].data_type & MOST_CH_ISOC) in available_datatypes_show() 212 c->iface->channel_vector[i].num_buffers_packet); in number_of_packet_buffers_show() [all …]
|
D | most_snd.c | 47 struct most_interface *iface; member 62 struct most_interface *iface; member 161 static struct channel *get_channel(struct most_interface *iface, in get_channel() argument 164 struct sound_adapter *adpt = iface->priv; in get_channel() 168 if ((channel->iface == iface) && (channel->id == channel_id)) in get_channel() 239 (mbo = most_get_mbo(channel->iface, channel->id, in playback_thread() 283 ret = most_start_channel(channel->iface, channel->id, &comp); in pcm_open() 311 most_stop_channel(channel->iface, channel->id, &comp); in pcm_close() 513 static int audio_probe_channel(struct most_interface *iface, int channel_id, in audio_probe_channel() argument 538 if (adpt->iface != iface) in audio_probe_channel() [all …]
|
D | most_usb.c | 105 struct most_interface iface; member 124 #define to_mdev(d) container_of(d, struct most_dev, iface) 236 static int hdm_poison_channel(struct most_interface *iface, int channel) in hdm_poison_channel() argument 238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel() 242 if (channel < 0 || channel >= iface->num_channels) { in hdm_poison_channel() 457 static int hdm_enqueue(struct most_interface *iface, int channel, in hdm_enqueue() argument 460 struct most_dev *mdev = to_mdev(iface); in hdm_enqueue() 469 if (iface->num_channels <= channel || channel < 0) in hdm_enqueue() 566 static int hdm_configure_channel(struct most_interface *iface, int channel, in hdm_configure_channel() argument 571 struct most_dev *mdev = to_mdev(iface); in hdm_configure_channel() [all …]
|
D | most_cdev.c | 36 struct most_interface *iface; member 52 return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0; in ch_has_mbo() 58 *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); in ch_get_mbo() 65 static struct comp_channel *get_channel(struct most_interface *iface, int id) in get_channel() argument 72 if ((c->iface == iface) && (c->channel_id == id)) { in get_channel() 87 most_stop_channel(c->iface, c->channel_id, &comp.cc); in stop_channel() 143 ret = most_start_channel(c->iface, c->channel_id, &comp.cc); in comp_open() 320 static int comp_disconnect_channel(struct most_interface *iface, int channel_id) in comp_disconnect_channel() argument 324 c = get_channel(iface, channel_id); in comp_disconnect_channel() 384 static int comp_tx_completion(struct most_interface *iface, int channel_id) in comp_tx_completion() argument [all …]
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_pci.c | 57 struct hostap_interface *iface; in hfa384x_outb_debug() local 62 iface = netdev_priv(dev); in hfa384x_outb_debug() 63 local = iface->local; in hfa384x_outb_debug() 74 struct hostap_interface *iface; in hfa384x_inb_debug() local 80 iface = netdev_priv(dev); in hfa384x_inb_debug() 81 local = iface->local; in hfa384x_inb_debug() 93 struct hostap_interface *iface; in hfa384x_outw_debug() local 98 iface = netdev_priv(dev); in hfa384x_outw_debug() 99 local = iface->local; in hfa384x_outw_debug() 110 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_cs.c | 48 struct hostap_interface *iface; in hfa384x_outb_debug() local 52 iface = netdev_priv(dev); in hfa384x_outb_debug() 53 local = iface->local; in hfa384x_outb_debug() 62 struct hostap_interface *iface; in hfa384x_inb_debug() local 67 iface = netdev_priv(dev); in hfa384x_inb_debug() 68 local = iface->local; in hfa384x_inb_debug() 78 struct hostap_interface *iface; in hfa384x_outw_debug() local 82 iface = netdev_priv(dev); in hfa384x_outw_debug() 83 local = iface->local; in hfa384x_outw_debug() 92 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_main.c | 51 struct hostap_interface *iface; in hostap_add_interface() local 58 iface = netdev_priv(dev); in hostap_add_interface() 59 iface->dev = dev; in hostap_add_interface() 60 iface->local = local; in hostap_add_interface() 61 iface->type = type; in hostap_add_interface() 62 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface() 101 struct hostap_interface *iface; in hostap_remove_interface() local 106 iface = netdev_priv(dev); in hostap_remove_interface() 109 list_del(&iface->list); in hostap_remove_interface() 112 if (dev == iface->local->ddev) in hostap_remove_interface() [all …]
|
D | hostap_80211_tx.c | 64 struct hostap_interface *iface; in hostap_data_start_xmit() local 77 iface = netdev_priv(dev); in hostap_data_start_xmit() 78 local = iface->local; in hostap_data_start_xmit() 180 else if (iface->type == HOSTAP_INTERFACE_WDS) in hostap_data_start_xmit() 181 memcpy(&hdr.addr1, iface->u.wds.remote_addr, in hostap_data_start_xmit() 217 iface->stats.tx_dropped++; in hostap_data_start_xmit() 223 iface->stats.tx_dropped++; in hostap_data_start_xmit() 231 iface->stats.tx_dropped++; in hostap_data_start_xmit() 237 iface->stats.tx_dropped++; in hostap_data_start_xmit() 249 iface->stats.tx_packets++; in hostap_data_start_xmit() [all …]
|
D | hostap_ioctl.c | 19 struct hostap_interface *iface; in hostap_get_wireless_stats() local 23 iface = netdev_priv(dev); in hostap_get_wireless_stats() 24 local = iface->local; in hostap_get_wireless_stats() 27 if (iface->type != HOSTAP_INTERFACE_MAIN) in hostap_get_wireless_stats() 68 struct hostap_interface *iface; in prism2_get_datarates() local 74 iface = netdev_priv(dev); in prism2_get_datarates() 75 local = iface->local; in prism2_get_datarates() 119 struct hostap_interface *iface; in prism2_ioctl_siwencode() local 124 iface = netdev_priv(dev); in prism2_ioctl_siwencode() 125 local = iface->local; in prism2_ioctl_siwencode() [all …]
|
D | hostap_plx.c | 110 struct hostap_interface *iface; in hfa384x_outb_debug() local 114 iface = netdev_priv(dev); in hfa384x_outb_debug() 115 local = iface->local; in hfa384x_outb_debug() 125 struct hostap_interface *iface; in hfa384x_inb_debug() local 130 iface = netdev_priv(dev); in hfa384x_inb_debug() 131 local = iface->local; in hfa384x_inb_debug() 142 struct hostap_interface *iface; in hfa384x_outw_debug() local 146 iface = netdev_priv(dev); in hfa384x_outw_debug() 147 local = iface->local; in hfa384x_outw_debug() 157 struct hostap_interface *iface; in hfa384x_inw_debug() local [all …]
|
D | hostap_hw.c | 246 struct hostap_interface *iface; in hfa384x_cmd_issue() local 252 iface = netdev_priv(dev); in hfa384x_cmd_issue() 253 local = iface->local; in hfa384x_cmd_issue() 313 struct hostap_interface *iface; in hfa384x_cmd() local 320 iface = netdev_priv(dev); in hfa384x_cmd() 321 local = iface->local; in hfa384x_cmd() 483 struct hostap_interface *iface; in hfa384x_cmd_callback() local 489 iface = netdev_priv(dev); in hfa384x_cmd_callback() 490 local = iface->local; in hfa384x_cmd_callback() 641 struct hostap_interface *iface; in prism2_cmd_ev() local [all …]
|
/drivers/staging/most/net/ |
D | net.c | 62 struct most_interface *iface; member 183 static void on_netinfo(struct most_interface *iface, 193 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() 199 if (most_start_channel(nd->iface, nd->tx.ch_id, &comp)) { in most_nd_open() 201 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_open() 212 if (nd->iface->request_netinfo) in most_nd_open() 213 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, on_netinfo); in most_nd_open() 225 if (nd->iface->request_netinfo) in most_nd_stop() 226 nd->iface->request_netinfo(nd->iface, nd->tx.ch_id, NULL); in most_nd_stop() 227 most_stop_channel(nd->iface, nd->rx.ch_id, &comp); in most_nd_stop() [all …]
|
/drivers/media/platform/amphion/ |
D | vpu_malone.c | 348 struct malone_iface *iface; in vpu_malone_init_rpc() local 358 iface = rpc->virt; in vpu_malone_init_rpc() 362 shared->iface = iface; in vpu_malone_init_rpc() 365 iface->exec_base_addr = base_phy_addr; in vpu_malone_init_rpc() 366 iface->exec_area_size = rpc->length; in vpu_malone_init_rpc() 371 shared->cmd_desc = &iface->cmd_buffer_desc.buffer; in vpu_malone_init_rpc() 373 iface->cmd_buffer_desc.buffer.start = in vpu_malone_init_rpc() 374 iface->cmd_buffer_desc.buffer.rptr = in vpu_malone_init_rpc() 375 iface->cmd_buffer_desc.buffer.wptr = phy_addr; in vpu_malone_init_rpc() 376 iface->cmd_buffer_desc.buffer.end = iface->cmd_buffer_desc.buffer.start + CMD_SIZE; in vpu_malone_init_rpc() [all …]
|
D | vpu_rpc.h | 20 void *iface; member 205 core->iface = shared; in vpu_iface_init() 221 ops->set_log_buf(core->iface, log); in vpu_iface_set_log_buf() 233 ops->set_system_cfg(core->iface, regs_base, regs, core->id); in vpu_iface_config_system() 245 return ops->get_stream_buffer_size(core->iface); in vpu_iface_get_stream_buffer_size() 255 ops->set_stream_cfg(inst->core->iface, inst->id); in vpu_iface_config_stream() 266 return ops->send_cmd_buf(core->iface, cmd); in vpu_iface_send_cmd() 276 return ops->receive_msg_buf(core->iface, msg); in vpu_iface_receive_msg() 320 ret = ops->input_frame(inst->core->iface, inst, vb); in vpu_iface_input_frame() 337 return ops->config_memory_resource(inst->core->iface, in vpu_iface_config_memory_resource() [all …]
|
D | vpu_windsor.c | 560 struct windsor_iface *iface; in vpu_windsor_init_rpc() local 569 iface = rpc->virt; in vpu_windsor_init_rpc() 570 shared->iface = iface; in vpu_windsor_init_rpc() 574 iface->exec_base_addr = base_phy_addr; in vpu_windsor_init_rpc() 575 iface->exec_area_size = rpc->length; in vpu_windsor_init_rpc() 579 shared->cmd_desc = &iface->cmd_buffer_desc; in vpu_windsor_init_rpc() 581 iface->cmd_buffer_desc.start = in vpu_windsor_init_rpc() 582 iface->cmd_buffer_desc.rptr = in vpu_windsor_init_rpc() 583 iface->cmd_buffer_desc.wptr = phy_addr; in vpu_windsor_init_rpc() 584 iface->cmd_buffer_desc.end = iface->cmd_buffer_desc.start + CMD_SIZE; in vpu_windsor_init_rpc() [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router_hw.c | 192 switch (in->iface.type) { in __prestera_rif_entry_key_copy() 194 out->iface.dev_port.hw_dev_num = in->iface.dev_port.hw_dev_num; in __prestera_rif_entry_key_copy() 195 out->iface.dev_port.port_num = in->iface.dev_port.port_num; in __prestera_rif_entry_key_copy() 198 out->iface.lag_id = in->iface.lag_id; in __prestera_rif_entry_key_copy() 201 out->iface.vlan_id = in->iface.vlan_id; in __prestera_rif_entry_key_copy() 208 out->iface.type = in->iface.type; in __prestera_rif_entry_key_copy() 234 struct prestera_iface iface; in prestera_rif_entry_destroy() local 238 memcpy(&iface, &e->key.iface, sizeof(iface)); in prestera_rif_entry_destroy() 239 iface.vr_id = e->vr->hw_vr_id; in prestera_rif_entry_destroy() 240 prestera_hw_rif_delete(sw, e->hw_id, &iface); in prestera_rif_entry_destroy() [all …]
|
/drivers/usb/misc/ |
D | appledisplay.c | 201 static int appledisplay_probe(struct usb_interface *iface, in appledisplay_probe() argument 206 struct usb_device *udev = interface_to_usbdev(iface); in appledisplay_probe() 214 retval = usb_find_int_in_endpoint(iface->cur_altsetting, &endpoint); in appledisplay_probe() 216 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in appledisplay_probe() 253 dev_err(&iface->dev, "Allocating URB buffer failed\n"); in appledisplay_probe() 265 dev_err(&iface->dev, "Submitting URB failed\n"); in appledisplay_probe() 278 dev_err(&iface->dev, "Backlight registration failed\n"); in appledisplay_probe() 288 dev_err(&iface->dev, in appledisplay_probe() 297 usb_set_intfdata(iface, pdata); in appledisplay_probe() 316 usb_set_intfdata(iface, NULL); in appledisplay_probe() [all …]
|
/drivers/mtd/nand/raw/ |
D | nand_toshiba.c | 203 struct nand_interface_config *iface) in tc58teg5dclta00_choose_interface_config() argument 205 onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 5); in tc58teg5dclta00_choose_interface_config() 207 return nand_choose_best_sdr_timings(chip, iface, NULL); in tc58teg5dclta00_choose_interface_config() 212 struct nand_interface_config *iface) in tc58nvg0s3e_choose_interface_config() argument 214 onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 2); in tc58nvg0s3e_choose_interface_config() 216 return nand_choose_best_sdr_timings(chip, iface, NULL); in tc58nvg0s3e_choose_interface_config() 221 struct nand_interface_config *iface) in th58nvg2s3hbai4_choose_interface_config() argument 223 struct nand_sdr_timings *sdr = &iface->timings.sdr; in th58nvg2s3hbai4_choose_interface_config() 226 onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 4); in th58nvg2s3hbai4_choose_interface_config() 243 return nand_choose_best_sdr_timings(chip, iface, sdr); in th58nvg2s3hbai4_choose_interface_config()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-sti.c | 29 #define IS_PHY_IF_MODE_RGMII(iface) (iface == PHY_INTERFACE_MODE_RGMII || \ argument 30 iface == PHY_INTERFACE_MODE_RGMII_ID || \ 31 iface == PHY_INTERFACE_MODE_RGMII_RXID || \ 32 iface == PHY_INTERFACE_MODE_RGMII_TXID) 34 #define IS_PHY_IF_MODE_GBIT(iface) (IS_PHY_IF_MODE_RGMII(iface) || \ argument 35 iface == PHY_INTERFACE_MODE_GMII) 178 int iface = dwmac->interface; in sti_dwmac_set_mode() local 185 regmap_update_bits(regmap, reg, MII_PHY_SEL_MASK, phy_intf_sels[iface]); in sti_dwmac_set_mode() 187 val = (iface == PHY_INTERFACE_MODE_REVMII) ? 0 : ENMII; in sti_dwmac_set_mode()
|
/drivers/net/can/c_can/ |
D | c_can_main.c | 48 #define C_CAN_IFACE(reg, iface) (C_CAN_IF1_##reg + (iface) * IF_ENUM_REG_LEN) argument 235 static void c_can_obj_update(struct net_device *dev, int iface, u32 cmd, u32 obj) in c_can_obj_update() argument 238 int cnt, reg = C_CAN_IFACE(COMREQ_REG, iface); in c_can_obj_update() 250 static inline void c_can_object_get(struct net_device *dev, int iface, in c_can_object_get() argument 253 c_can_obj_update(dev, iface, cmd, obj); in c_can_object_get() 256 static inline void c_can_object_put(struct net_device *dev, int iface, in c_can_object_put() argument 259 c_can_obj_update(dev, iface, cmd | IF_COMM_WR, obj); in c_can_object_put() 266 static void c_can_inval_tx_object(struct net_device *dev, int iface, int obj) in c_can_inval_tx_object() argument 270 priv->write_reg(priv, C_CAN_IFACE(MSGCTRL_REG, iface), 0); in c_can_inval_tx_object() 271 c_can_object_put(dev, iface, obj, IF_COMM_INVAL); in c_can_inval_tx_object() [all …]
|
/drivers/usb/core/ |
D | message.c | 1526 struct usb_interface *iface; in usb_set_interface() local 1536 iface = usb_ifnum_to_if(dev, interface); in usb_set_interface() 1537 if (!iface) { in usb_set_interface() 1542 if (iface->unregistering) in usb_set_interface() 1545 alt = usb_altnum_to_altsetting(iface, alternate); in usb_set_interface() 1556 usb_disable_interface(dev, iface, false); in usb_set_interface() 1566 dev_err(&iface->dev, "%s Failed to disable LPM\n", __func__); in usb_set_interface() 1571 for (i = 0; i < iface->cur_altsetting->desc.bNumEndpoints; i++) in usb_set_interface() 1572 iface->cur_altsetting->endpoint[i].streams = 0; in usb_set_interface() 1574 ret = usb_hcd_alloc_bandwidth(dev, NULL, iface->cur_altsetting, alt); in usb_set_interface() [all …]
|
/drivers/staging/most/video/ |
D | video.c | 30 struct most_interface *iface; member 98 ret = most_start_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_open() 140 most_stop_channel(mdev->iface, mdev->ch_idx, &comp); in comp_vdev_close() 251 "%s", mdev->iface->description); in vidioc_querycap() 368 static struct most_video_dev *get_comp_dev(struct most_interface *iface, int channel_idx) in get_comp_dev() argument 375 if (mdev->iface == iface && mdev->ch_idx == channel_idx) { in get_comp_dev() 449 static int comp_probe_channel(struct most_interface *iface, int channel_idx, in comp_probe_channel() argument 454 struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); in comp_probe_channel() 480 mdev->iface = iface; in comp_probe_channel() 508 static int comp_disconnect_channel(struct most_interface *iface, in comp_disconnect_channel() argument [all …]
|
/drivers/input/mouse/ |
D | appletouch.c | 829 static int atp_probe(struct usb_interface *iface, in atp_probe() argument 834 struct usb_device *udev = interface_to_usbdev(iface); in atp_probe() 843 iface_desc = iface->cur_altsetting; in atp_probe() 853 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in atp_probe() 861 dev_err(&iface->dev, "Out of memory\n"); in atp_probe() 866 dev->intf = iface; in atp_probe() 895 input_dev->dev.parent = &iface->dev; in atp_probe() 926 usb_set_intfdata(iface, dev); in atp_probe() 936 usb_set_intfdata(iface, NULL); in atp_probe() 942 static void atp_disconnect(struct usb_interface *iface) in atp_disconnect() argument [all …]
|
/drivers/media/platform/ti/omap3isp/ |
D | ispcsiphy.c | 24 enum isp_interface_type iface, in csiphy_routing_cfg_3630() argument 32 switch (iface) { in csiphy_routing_cfg_3630() 55 if (iface == ISP_INTERFACE_CCP2B_PHY1 || in csiphy_routing_cfg_3630() 56 iface == ISP_INTERFACE_CCP2B_PHY2) { in csiphy_routing_cfg_3630() 69 static void csiphy_routing_cfg_3430(struct isp_csiphy *phy, u32 iface, bool on, in csiphy_routing_cfg_3430() argument 76 if (iface != ISP_INTERFACE_CCP2B_PHY1) in csiphy_routing_cfg_3430() 103 enum isp_interface_type iface, bool on, in csiphy_routing_cfg() argument 107 return csiphy_routing_cfg_3630(phy, iface, ccp2_strobe); in csiphy_routing_cfg() 109 return csiphy_routing_cfg_3430(phy, iface, on, ccp2_strobe); in csiphy_routing_cfg()
|