/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | proto.c | 22 struct brcmf_proto *proto; in brcmf_proto_attach() local 26 proto = kzalloc(sizeof(*proto), GFP_ATOMIC); in brcmf_proto_attach() 27 if (!proto) in brcmf_proto_attach() 30 drvr->proto = proto; in brcmf_proto_attach() 43 if (!proto->tx_queue_data || (proto->hdrpull == NULL) || in brcmf_proto_attach() 44 (proto->query_dcmd == NULL) || (proto->set_dcmd == NULL) || in brcmf_proto_attach() 45 (proto->configure_addr_mode == NULL) || in brcmf_proto_attach() 46 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL) || in brcmf_proto_attach() 47 (proto->debugfs_create == NULL)) { in brcmf_proto_attach() 54 kfree(proto); in brcmf_proto_attach() [all …]
|
D | proto.h | 61 return drvr->proto->hdrpull(drvr, do_fws, skb, ifp); in brcmf_proto_hdrpull() 67 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len,fwerr); in brcmf_proto_query_dcmd() 73 return drvr->proto->set_dcmd(drvr, ifidx, cmd, buf, len, fwerr); in brcmf_proto_set_dcmd() 79 return drvr->proto->tx_queue_data(drvr, ifidx, skb); in brcmf_proto_tx_queue_data() 85 return drvr->proto->txdata(drvr, ifidx, offset, skb); in brcmf_proto_txdata() 91 drvr->proto->configure_addr_mode(drvr, ifidx, addr_mode); in brcmf_proto_configure_addr_mode() 96 drvr->proto->delete_peer(drvr, ifidx, peer); in brcmf_proto_delete_peer() 101 drvr->proto->add_tdls_peer(drvr, ifidx, peer); in brcmf_proto_add_tdls_peer() 114 ifp->drvr->proto->rxreorder(ifp, skb); in brcmf_proto_rxreorder() 120 if (!drvr->proto->add_if) in brcmf_proto_add_if() [all …]
|
D | bcdc.c | 103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws() 112 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg() 143 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt() 161 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd() 219 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_set_dcmd() 337 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data() 368 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete() 427 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done() 457 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach() 458 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd; in brcmf_proto_bcdc_attach() [all …]
|
/drivers/net/wan/ |
D | hdlc.c | 63 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv() 64 return hdlc->proto->netif_rx(skb); in hdlc_rcv() 71 if (hdlc->proto->xmit) in hdlc_start_xmit() 72 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit() 82 if (hdlc->proto->start) in hdlc_proto_start() 83 hdlc->proto->start(dev); in hdlc_proto_start() 90 if (hdlc->proto->stop) in hdlc_proto_stop() 91 hdlc->proto->stop(dev); in hdlc_proto_stop() 151 if (!hdlc->proto) in hdlc_open() 154 if (hdlc->proto->open) { in hdlc_open() [all …]
|
D | hdlc_ppp.c | 62 struct proto { struct 73 struct proto protos[IDX_COUNT]; argument 110 static inline struct proto *get_proto(struct net_device *dev, u16 pid) in get_proto() 304 struct proto *proto = get_proto(dev, pid); in ppp_cp_event() local 306 old_state = proto->state; in ppp_cp_event() 312 proto_name(pid), event_names[event], state_names[proto->state]); in ppp_cp_event() 317 proto->state = action & STATE_MASK; in ppp_cp_event() 319 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event() 322 proto->restart_counter = 0; in ppp_cp_event() 324 proto->restart_counter = (proto->state == STOPPING) ? in ppp_cp_event() [all …]
|
D | hdlc_raw.c | 29 static struct hdlc_proto proto = { variable 46 if (dev_to_hdlc(dev)->proto != &proto) in raw_ioctl() 78 result = attach_hdlc_protocol(dev, &proto, in raw_ioctl() 95 register_hdlc_protocol(&proto); in hdlc_raw_init() 103 unregister_hdlc_protocol(&proto); in hdlc_raw_exit()
|
D | hdlc_raw_eth.c | 43 static struct hdlc_proto proto = { variable 62 if (dev_to_hdlc(dev)->proto != &proto) in raw_eth_ioctl() 94 result = attach_hdlc_protocol(dev, &proto, in raw_eth_ioctl() 115 register_hdlc_protocol(&proto); in hdlc_eth_init() 123 unregister_hdlc_protocol(&proto); in hdlc_eth_exit()
|
/drivers/block/paride/ |
D | paride.c | 47 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr() 54 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr() 61 pi->proto->write_block(pi, buf, count); in pi_write_block() 68 pi->proto->read_block(pi, buf, count); in pi_read_block() 139 pi->proto->connect(pi); in pi_connect() 146 pi->proto->disconnect(pi); in pi_disconnect() 163 if (pi->proto->release_proto) in pi_release() 164 pi->proto->release_proto(pi); in pi_release() 165 module_put(pi->proto->owner); in pi_release() 175 pi->proto->connect(pi); in default_test_proto() [all …]
|
/drivers/firmware/arm_scmi/ |
D | bus.c | 81 const struct scmi_protocol *proto; in scmi_protocol_get() local 83 proto = idr_find(&scmi_protocols, protocol_id); in scmi_protocol_get() 84 if (!proto || !try_module_get(proto->owner)) { in scmi_protocol_get() 91 return proto; in scmi_protocol_get() 96 const struct scmi_protocol *proto; in scmi_protocol_put() local 98 proto = idr_find(&scmi_protocols, protocol_id); in scmi_protocol_put() 99 if (proto) in scmi_protocol_put() 100 module_put(proto->owner); in scmi_protocol_put() 235 int scmi_protocol_register(const struct scmi_protocol *proto) in scmi_protocol_register() argument 239 if (!proto) { in scmi_protocol_register() [all …]
|
D | notify.c | 181 r->proto->ops->set_notify_enabled(r->proto->ph, \ 194 r->proto->ops->fill_custom_report(r->proto->ph, \ 332 struct scmi_registered_events_desc *proto; member 597 if (kfifo_avail(&r_evt->proto->equeue.kfifo) < sizeof(eh) + len) { in scmi_notify() 612 kfifo_in(&r_evt->proto->equeue.kfifo, &eh, sizeof(eh)); in scmi_notify() 613 kfifo_in(&r_evt->proto->equeue.kfifo, buf, len); in scmi_notify() 626 queue_work(r_evt->proto->equeue.wq, in scmi_notify() 627 &r_evt->proto->equeue.notify_work); in scmi_notify() 797 r_evt->proto = pd; in scmi_register_protocol_events() 816 MAKE_ALL_SRCS_KEY(r_evt->proto->id, r_evt->evt->id)); in scmi_register_protocol_events() [all …]
|
/drivers/s390/net/ |
D | qeth_l3.h | 33 enum qeth_prot_versions proto; member 48 enum qeth_prot_versions proto) in qeth_l3_init_ipaddr() argument 52 addr->proto = proto; in qeth_l3_init_ipaddr() 60 if (a1->proto != a2->proto) in qeth_l3_addr_match_ip() 62 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_ip() 82 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_all() 89 if (addr->proto == QETH_PROT_IPV6) in qeth_l3_ipaddr_hash() 97 enum qeth_prot_versions proto; member 104 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, 110 enum qeth_prot_versions proto, u8 *addr, [all …]
|
D | qeth_l3_sys.c | 20 enum qeth_prot_versions proto, u8 *addr) in qeth_l3_string_to_ipaddr() argument 24 if ((proto == QETH_PROT_IPV4 && !in4_pton(buf, -1, addr, -1, &end)) || in qeth_l3_string_to_ipaddr() 25 (proto == QETH_PROT_IPV6 && !in6_pton(buf, -1, addr, -1, &end))) in qeth_l3_string_to_ipaddr() 367 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument 377 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show() 380 entry_len = qeth_l3_ipaddr_to_string(proto, ipatoe->addr, in qeth_l3_dev_ipato_add_show() 386 entry_len += 1 + ((proto == QETH_PROT_IPV4) ? 2 : 3); in qeth_l3_dev_ipato_add_show() 409 static int qeth_l3_parse_ipatoe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_ipatoe() argument 422 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_parse_ipatoe() 430 if (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128)) in qeth_l3_parse_ipatoe() [all …]
|
D | qeth_l3_main.c | 45 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, in qeth_l3_ipaddr_to_string() argument 48 if (proto == QETH_PROT_IPV4) in qeth_l3_ipaddr_to_string() 100 (addr->proto == QETH_PROT_IPV4) ? 4 : 16); in qeth_l3_is_addr_covered_by_ipato() 102 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato() 105 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato() 112 if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) in qeth_l3_is_addr_covered_by_ipato() 114 else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) in qeth_l3_is_addr_covered_by_ipato() 133 if (tmp_addr->proto == QETH_PROT_IPV4) in qeth_l3_delete_ip() 170 if (tmp_addr->proto == QETH_PROT_IPV4) in qeth_l3_add_ip() 185 qeth_l3_ipaddr_to_string(tmp_addr->proto, (u8 *)&tmp_addr->u, in qeth_l3_add_ip() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_ttc.c | 63 u8 proto; member 69 .proto = IPPROTO_TCP, 73 .proto = IPPROTO_TCP, 77 .proto = IPPROTO_UDP, 81 .proto = IPPROTO_UDP, 85 .proto = IPPROTO_AH, 89 .proto = IPPROTO_AH, 93 .proto = IPPROTO_ESP, 97 .proto = IPPROTO_ESP, 101 .proto = 0, [all …]
|
/drivers/bluetooth/ |
D | hci_serdev.c | 50 skb = hu->proto->dequeue(hu); in hci_uart_dequeue() 108 hu->proto->flush(hu); in hci_uart_flush() 171 hu->proto->enqueue(hu, skb); in hci_uart_send_frame() 189 else if (hu->proto->init_speed) in hci_uart_setup() 190 speed = hu->proto->init_speed; in hci_uart_setup() 200 else if (hu->proto->oper_speed) in hci_uart_setup() 201 speed = hu->proto->oper_speed; in hci_uart_setup() 205 if (hu->proto->set_baudrate && speed) { in hci_uart_setup() 206 err = hu->proto->set_baudrate(hu, speed); in hci_uart_setup() 213 if (hu->proto->setup) in hci_uart_setup() [all …]
|
D | hci_ldisc.c | 106 skb = hu->proto->dequeue(hu); in hci_uart_dequeue() 196 hu->proto->close(hu); in hci_uart_init_work() 243 hu->proto->flush(hu); in hci_uart_flush() 286 hu->proto->enqueue(hu, skb); in hci_uart_send_frame() 400 else if (hu->proto->init_speed) in hci_uart_setup() 401 speed = hu->proto->init_speed; in hci_uart_setup() 411 else if (hu->proto->oper_speed) in hci_uart_setup() 412 speed = hu->proto->oper_speed; in hci_uart_setup() 416 if (hu->proto->set_baudrate && speed) { in hci_uart_setup() 417 err = hu->proto->set_baudrate(hu, speed); in hci_uart_setup() [all …]
|
/drivers/net/arcnet/ |
D | arcnet.c | 264 void arcnet_unregister_proto(struct ArcProto *proto) in arcnet_unregister_proto() argument 268 if (arc_proto_default == proto) in arcnet_unregister_proto() 270 if (arc_bcast_proto == proto) in arcnet_unregister_proto() 272 if (arc_raw_proto == proto) in arcnet_unregister_proto() 276 if (arc_proto_map[count] == proto) in arcnet_unregister_proto() 651 struct ArcProto *proto; in arcnet_header() local 665 proto = arc_raw_proto; in arcnet_header() 667 proto->suffix); in arcnet_header() 685 proto = arc_proto_map[proto_num]; in arcnet_header() 687 proto_num, proto->suffix); in arcnet_header() [all …]
|
/drivers/tty/hvc/ |
D | hvc_vio.c | 58 hv_protocol_t proto; /* Raw data or HVSI packets */ member 239 switch(hvterm_privs[0]->proto) { in udbg_hvc_putc() 263 switch(hvterm_privs[0]->proto) { in udbg_hvc_getc_poll() 302 hv_protocol_t proto; in hvc_vio_probe() local 310 proto = HV_PROTOCOL_RAW; in hvc_vio_probe() 313 proto = HV_PROTOCOL_HVSI; in hvc_vio_probe() 322 proto == HV_PROTOCOL_RAW ? "raw" : "hvsi"); in hvc_vio_probe() 343 pv->proto = proto; in hvc_vio_probe() 403 hvterm_priv0.proto = HV_PROTOCOL_RAW; in hvc_vio_init_early() 407 hvterm_priv0.proto = HV_PROTOCOL_HVSI; in hvc_vio_init_early() [all …]
|
D | hvc_opal.c | 43 hv_protocol_t proto; /* Raw data or HVSI packets */ member 158 hv_protocol_t proto; in hvc_opal_probe() local 163 proto = HV_PROTOCOL_RAW; in hvc_opal_probe() 167 proto = HV_PROTOCOL_HVSI; in hvc_opal_probe() 186 pv->proto = proto; in hvc_opal_probe() 188 if (proto == HV_PROTOCOL_HVSI) { in hvc_opal_probe() 207 proto == HV_PROTOCOL_RAW ? "raw" : "hvsi", in hvc_opal_probe() 278 switch(hvc_opal_boot_priv.proto) { in udbg_opal_putc() 300 switch(hvc_opal_boot_priv.proto) { in udbg_opal_getc_poll() 373 hvc_opal_boot_priv.proto = HV_PROTOCOL_RAW; in hvc_opal_init_early() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_nve.c | 64 enum mlxsw_sp_l3proto proto; member 188 enum mlxsw_sp_l3proto proto, in mlxsw_sp_nve_learned_ip_resolve() argument 191 switch (proto) { in mlxsw_sp_nve_learned_ip_resolve() 274 enum mlxsw_sp_l3proto proto) in mlxsw_sp_nve_mc_record_create() argument 276 unsigned int num_max_entries = mlxsw_sp->nve->num_max_mc_entries[proto]; in mlxsw_sp_nve_mc_record_create() 290 mc_record->ops = mlxsw_sp_nve_mc_record_ops_arr[proto]; in mlxsw_sp_nve_mc_record_create() 293 mc_record->proto = proto; in mlxsw_sp_nve_mc_record_create() 318 enum mlxsw_sp_l3proto proto) in mlxsw_sp_nve_mc_record_get() argument 326 if (mc_record->proto == proto && in mlxsw_sp_nve_mc_record_get() 327 num_entries < nve->num_max_mc_entries[proto]) in mlxsw_sp_nve_mc_record_get() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | outp.c | 146 enum nvkm_ior_proto proto; in nvkm_outp_acquire() local 156 proto = nvkm_outp_xlat(outp, &type); in nvkm_outp_acquire() 157 if (proto == UNKNOWN) in nvkm_outp_acquire() 221 enum nvkm_ior_proto proto; in nvkm_outp_init_route() local 227 proto = nvkm_outp_xlat(outp, &type); in nvkm_outp_init_route() 228 if (proto == UNKNOWN) in nvkm_outp_init_route() 258 if (!ior->arm.head || ior->arm.proto != proto) { in nvkm_outp_init_route() 260 ior->arm.proto, proto); in nvkm_outp_init_route() 302 enum nvkm_ior_proto proto; in nvkm_outp_new_() local 322 proto = nvkm_outp_xlat(outp, &type); in nvkm_outp_new_() [all …]
|
/drivers/misc/ti-st/ |
D | st_core.c | 40 struct st_proto_s *proto) in remove_channel_from_table() argument 42 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table() 44 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table() 233 struct st_proto_s *proto; in st_int_recv() local 281 proto = st_gdata->list[st_gdata->rx_chnl]; in st_int_recv() 284 [proto->offset_len_in_hdr]; in st_int_recv() 286 if (proto->len_size == 1) /* 1 byte len field */ in st_int_recv() 288 else if (proto->len_size == 2) in st_int_recv() 294 __func__, proto->chnl_id); in st_int_recv() 295 st_check_data_len(st_gdata, proto->chnl_id, in st_int_recv() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | brcms_trace_events.h | 27 #define TRACE_EVENT(name, proto, ...) \ argument 28 static inline void trace_ ## name(proto) {} 32 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument 33 static inline void trace_ ## name(proto) {}
|
/drivers/input/mouse/ |
D | psmouse-base.c | 54 module_param_named(proto, psmouse_max_proto, proto_abbrev, 0644); 55 MODULE_PARM_DESC(proto, "Highest protocol extension to probe (bare, imps, exps, any). Useful for KV… 931 const struct psmouse_protocol *proto; in psmouse_protocol_by_type() local 933 proto = __psmouse_protocol_by_type(type); in psmouse_protocol_by_type() 934 if (proto) in psmouse_protocol_by_type() 935 return proto; in psmouse_protocol_by_type() 1015 const struct psmouse_protocol *proto; in psmouse_try_protocol() local 1017 proto = __psmouse_protocol_by_type(type); in psmouse_try_protocol() 1018 if (!proto) in psmouse_try_protocol() 1021 if (!psmouse_do_detect(proto->detect, psmouse, proto->try_passthru, in psmouse_try_protocol() [all …]
|
/drivers/infiniband/hw/usnic/ |
D | usnic_transport.c | 69 int proto; in usnic_transport_sock_to_str() local 72 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port); in usnic_transport_sock_to_str() 77 proto, &addr, port); in usnic_transport_sock_to_str() 173 int usnic_transport_sock_get_addr(struct socket *sock, int *proto, in usnic_transport_sock_get_addr() argument 188 if (proto) in usnic_transport_sock_get_addr() 189 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
|