Home
last modified time | relevance | path

Searched refs:port_idx (Results 1 – 15 of 15) sorted by relevance

/drivers/usb/wusbcore/
Drh.c99 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 …]
Ddevconnect.c164 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 …]
Dsecurity.c90 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()
Ddev-sysfs.c38 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()
Dwusbhc.h101 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/
Dturbografx.c165 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()
Ddb9.c563 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()
Dgamecon.c934 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/
Dwusb.c106 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()
Dwhcd.h160 int whc_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid,
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c233 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 …]
Dhns_ae_adapt.c113 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/
Dhwa-hc.c451 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/
Dcxgb4.h930 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/
Dt3_cpl.h552 __u8 port_idx:1; member
556 __u8 port_idx:1; member