/drivers/usb/wusbcore/ |
D | rh.c | 99 static int wusbhc_rh_port_reset(struct wusbhc *wusbhc, u8 port_idx) in wusbhc_rh_port_reset() argument 102 struct wusb_port *port = wusb_port_by_idx(wusbhc, port_idx); in wusbhc_rh_port_reset() 247 u8 selector, u8 port_idx) in wusbhc_rh_set_port_feat() argument 251 if (port_idx > wusbhc->ports_max) in wusbhc_rh_set_port_feat() 266 wusb_port_by_idx(wusbhc, port_idx)->status |= USB_PORT_STAT_POWER; in wusbhc_rh_set_port_feat() 270 return wusbhc_rh_port_reset(wusbhc, port_idx); in wusbhc_rh_set_port_feat() 274 port_idx, feature, selector); in wusbhc_rh_set_port_feat() 278 port_idx, feature, selector); in wusbhc_rh_set_port_feat() 291 u8 selector, u8 port_idx) in wusbhc_rh_clear_port_feat() argument 296 if (port_idx > wusbhc->ports_max) in wusbhc_rh_clear_port_feat() [all …]
|
D | devconnect.c | 164 const char *pr_cdid, u8 port_idx) in wusbhc_cack_add() argument 183 wusb_dev->port_idx = port_idx; in wusbhc_cack_add() 199 dev_addr = (port_idx + 2) | WUSB_DEV_ADDR_UNAUTH; in wusbhc_cack_add() 202 "port %u\n", dev_addr, port_idx); in wusbhc_cack_add() 368 dev_dbg(wusbhc->dev, "disconnecting device from port %d\n", wusb_dev->port_idx); in __wusbhc_dev_disconnect() 580 wusb_dev->port_idx)); in wusbhc_handle_dn_disconnect() 653 void __wusbhc_dev_disable(struct wusbhc *wusbhc, u8 port_idx) in __wusbhc_dev_disable() argument 660 wusb_dev = wusb_port_by_idx(wusbhc, port_idx)->wusb_dev; in __wusbhc_dev_disable() 664 port_idx); in __wusbhc_dev_disable() 667 __wusbhc_dev_disconnect(wusbhc, wusb_port_by_idx(wusbhc, port_idx)); in __wusbhc_dev_disable() [all …]
|
D | security.c | 90 tkid = &wusb_port_by_idx(wusbhc, wusb_dev->port_idx)->ptk_tkid; in wusbhc_next_tkid() 497 result = wusbhc->set_ptk(wusbhc, wusb_dev->port_idx, tkid, in wusb_dev_4way_handshake() 546 int port_idx; in wusbhc_gtk_rekey_work() local 560 for (port_idx = 0; port_idx < wusbhc->ports_max; port_idx++) { in wusbhc_gtk_rekey_work() 561 wusb_dev = wusbhc->port[port_idx].wusb_dev; in wusbhc_gtk_rekey_work() 577 __func__, wusb_dev->port_idx); in wusbhc_gtk_rekey_work() 582 __func__, wusb_dev->port_idx); in wusbhc_gtk_rekey_work()
|
D | dev-sysfs.c | 38 u8 port_idx; in wusb_disconnect_store() local 50 port_idx = wusb_port_no_to_idx(usb_dev->portnum); in wusb_disconnect_store() 51 __wusbhc_dev_disable(wusbhc, port_idx); in wusb_disconnect_store()
|
D | wusbhc.h | 101 u8 port_idx; member 286 int (*set_ptk)(struct wusbhc *wusbhc, u8 port_idx, 455 u8 port_idx) in wusb_port_by_idx() argument 457 return &wusbhc->port[port_idx]; in wusb_port_by_idx()
|
/drivers/input/joystick/ |
D | turbografx.c | 165 int i, j, port_idx; in tgfx_attach() local 169 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) { in tgfx_attach() 170 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach() 171 tgfx_cfg[port_idx].args[0] < 0) in tgfx_attach() 173 if (tgfx_cfg[port_idx].args[0] == pp->number) in tgfx_attach() 177 if (port_idx == TGFX_MAX_PORTS) { in tgfx_attach() 181 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach() 182 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach() 188 port_idx); in tgfx_attach() 256 tgfx_base[port_idx] = tgfx; in tgfx_attach()
|
D | db9.c | 563 int i, j, port_idx; in db9_attach() local 567 for (port_idx = 0; port_idx < DB9_MAX_PORTS; port_idx++) { in db9_attach() 568 if (db9_cfg[port_idx].nargs == 0 || in db9_attach() 569 db9_cfg[port_idx].args[DB9_ARG_PARPORT] < 0) in db9_attach() 572 if (db9_cfg[port_idx].args[DB9_ARG_PARPORT] == pp->number) in db9_attach() 576 if (port_idx == DB9_MAX_PORTS) { in db9_attach() 581 mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; in db9_attach() 598 pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx); in db9_attach() 653 db9_base[port_idx] = db9; in db9_attach()
|
D | gamecon.c | 934 int i, port_idx; in gc_attach() local 939 for (port_idx = 0; port_idx < GC_MAX_PORTS; port_idx++) { in gc_attach() 940 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach() 943 if (gc_cfg[port_idx].args[0] == pp->number) in gc_attach() 947 if (port_idx == GC_MAX_PORTS) { in gc_attach() 951 pads = gc_cfg[port_idx].args + 1; in gc_attach() 952 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach() 958 port_idx); in gc_attach() 990 gc_base[port_idx] = gc; in gc_attach()
|
/drivers/usb/host/whci/ |
D | wusb.c | 106 int idx = wusb_dev->port_idx; in whc_dev_info_set() 171 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in whc_set_ptk() argument 175 struct di_buf_entry *di = &whc->di_buf[port_idx]; in whc_set_ptk() 181 ret = whc_set_key(whc, port_idx, tkid, ptk, key_size, false); in whc_set_ptk() 186 di->addr_sec_info |= WHC_DI_SECURE | WHC_DI_KEY_IDX(port_idx); in whc_set_ptk() 190 ret = whc_update_di(whc, port_idx); in whc_set_ptk()
|
D | whcd.h | 160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid,
|
/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_rcb.c | 233 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() argument 235 if (port_idx >= HNS_RCB_SERVICE_NW_ENGINE_NUM) in hns_rcb_set_port_desc_cnt() 236 port_idx = 0; in hns_rcb_set_port_desc_cnt() 238 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt() 249 u32 port_idx, in hns_rcb_set_port_coalesced_frames() argument 252 if (port_idx >= HNS_RCB_SERVICE_NW_ENGINE_NUM) in hns_rcb_set_port_coalesced_frames() 253 port_idx = 0; in hns_rcb_set_port_coalesced_frames() 258 dsaf_write_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4, in hns_rcb_set_port_coalesced_frames() 270 u32 port_idx) in hns_rcb_get_port_coalesced_frames() argument 272 if (port_idx >= HNS_RCB_SERVICE_NW_ENGINE_NUM) in hns_rcb_get_port_coalesced_frames() [all …]
|
D | hns_ae_adapt.c | 113 int port_idx; in hns_ae_get_handle() local 123 port_idx = hns_ae_map_eport_to_dport(port_id); in hns_ae_get_handle() 125 ring_pair_cb = hns_ae_get_base_ring_pair(dsaf_dev, port_idx); in hns_ae_get_handle() 126 vfnum_per_port = hns_ae_get_vf_num_per_port(dsaf_dev, port_idx); in hns_ae_get_handle() 127 qnum_per_vf = hns_ae_get_q_num_per_vf(dsaf_dev, port_idx); in hns_ae_get_handle() 162 if (port_idx < DSAF_SERVICE_PORT_NUM_PER_DSAF) in hns_ae_get_handle() 163 ring_pair_cb->port_id_in_dsa = port_idx; in hns_ae_get_handle() 171 vf_cb->port_index = port_idx; in hns_ae_get_handle() 172 vf_cb->mac_cb = &dsaf_dev->mac_cb[port_idx]; in hns_ae_get_handle()
|
/drivers/usb/host/ |
D | hwa-hc.c | 451 0, wusb_dev->port_idx << 8 | iface_no, in __hwahc_op_dev_info_set() 465 static int __hwahc_dev_set_key(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_dev_set_key() argument 492 port_idx << 8 | iface_no, in __hwahc_dev_set_key() 506 static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid, in __hwahc_op_set_ptk() argument 520 result = __hwahc_dev_set_key(wusbhc, port_idx, tkid, in __hwahc_op_set_ptk() 534 encryption_value, port_idx << 8 | iface_no, in __hwahc_op_set_ptk() 538 "port index %u to %s (value %d): %d\n", port_idx, in __hwahc_op_set_ptk()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4.h | 930 static inline void t4_set_hw_addr(struct adapter *adapter, int port_idx, in t4_set_hw_addr() argument 933 ether_addr_copy(adapter->port[port_idx]->dev_addr, hw_addr); in t4_set_hw_addr() 934 ether_addr_copy(adapter->port[port_idx]->perm_addr, hw_addr); in t4_set_hw_addr()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_cpl.h | 552 __u8 port_idx:1; member 556 __u8 port_idx:1; member
|