| /linux/drivers/i2c/busses/ |
| H A 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 …]
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | ethtool_rmon.sh | 20 local iface=$1; shift 22 local current=$(ip -j link show dev $iface | jq -r '.[0].mtu') 26 ip link set dev $iface mtu $required || return 1 32 local iface=$1; shift 49 before=$(ethtool --json -S $iface --groups rmon | \ 55 $MZ $iface -q -c $num_tx -p $len -a own -b bcast -d 10us 57 after=$(ethtool --json -S $iface --groups rmon | \ 70 local iface=$1; shift 79 step="$set-pkts${bucket[0]}to${bucket[1]} on $iface" 81 for if in $iface $neigh; do [all …]
|
| /linux/fs/smb/server/ |
| H A D | transport_tcp.c | 219 struct interface *iface = (struct interface *)p; in ksmbd_kthread_fn() local 225 if (!iface->ksmbd_socket) { in ksmbd_kthread_fn() 228 ret = kernel_accept(iface->ksmbd_socket, &client_sk, 0); in ksmbd_kthread_fn() 310 static int ksmbd_tcp_run_kthread(struct interface *iface) in ksmbd_tcp_run_kthread() argument 315 kthread = kthread_run(ksmbd_kthread_fn, (void *)iface, "ksmbd-%s", in ksmbd_tcp_run_kthread() 316 iface->name); in ksmbd_tcp_run_kthread() 321 iface->ksmbd_kthread = kthread; in ksmbd_tcp_run_kthread() 453 static int create_socket(struct interface *iface) in create_socket() argument 493 KERNEL_SOCKPTR(iface->name), in create_socket() 494 strlen(iface->name)); in create_socket() [all …]
|
| /linux/drivers/most/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| /linux/include/linux/ |
| H A D | most.h | 241 int (*configure)(struct most_interface *iface, int channel_idx, 243 int (*enqueue)(struct most_interface *iface, int channel_idx, 245 int (*poison_channel)(struct most_interface *iface, int channel_idx); 246 void (*request_netinfo)(struct most_interface *iface, int channel_idx, 247 void (*on_netinfo)(struct most_interface *iface, 267 int (*probe_channel)(struct most_interface *iface, int channel_idx, 270 int (*disconnect_channel)(struct most_interface *iface, 273 int (*tx_completion)(struct most_interface *iface, int channel_idx); 286 int most_register_interface(struct most_interface *iface); 292 void most_deregister_interface(struct most_interface *iface); [all …]
|
| /linux/drivers/staging/most/net/ |
| H A 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 …]
|
| /linux/sound/usb/ |
| H A D | quirks-table.h | 133 .iface = 1, 173 .iface = 3, 455 .iface = 0, 470 .iface = 1, 780 .iface = 1, 795 .iface = 2, 1226 .iface = 0, 1242 .iface = 1, 1277 .iface = 0, 1293 .iface = 1, [all …]
|
| H A D | quirks.c | 34 struct usb_interface *iface, in create_composite_quirk() argument 38 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk() 43 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 44 if (!iface) in create_composite_quirk() 47 usb_interface_claimed(iface)) in create_composite_quirk() 49 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk() 55 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 56 if (!iface) in create_composite_quirk() 59 !usb_interface_claimed(iface)) { in create_composite_quirk() 60 err = usb_driver_claim_interface(driver, iface, in create_composite_quirk() [all …]
|
| H A D | implicit.c | 32 unsigned int iface; member 40 .iface = (ifnum) } 43 .iface = (ifnum) } 72 .ep_num = 0x84, .iface = 0 }, /* MOTU MicroBook II */ 88 struct usb_interface *iface; in add_implicit_fb_sync_ep() local 91 iface = usb_ifnum_to_if(chip->dev, ifnum); in add_implicit_fb_sync_ep() 92 if (!iface || iface->num_altsetting < 2) in add_implicit_fb_sync_ep() 94 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep() 104 fmt->iface, fmt->altsetting, in add_implicit_fb_sync_ep() 238 int iface, int altset) in __add_generic_implicit_fb() argument [all …]
|
| /linux/fs/smb/client/ |
| H A D | sess.c | 28 struct cifs_server_iface *iface); 30 bool is_ses_using_iface(struct cifs_ses *ses, struct cifs_server_iface *iface) in is_ses_using_iface() argument 36 if (ses->chans[i].iface == iface) { in is_ses_using_iface() 142 return ses->chans[chan_index].iface && in cifs_chan_is_iface_active() 143 ses->chans[chan_index].iface->is_active; in cifs_chan_is_iface_active() 155 struct cifs_server_iface *iface = NULL, *niface = NULL; in cifs_try_adding_channels() local 201 if (!iface) in cifs_try_adding_channels() 202 iface = list_first_entry(&ses->iface_list, struct cifs_server_iface, in cifs_try_adding_channels() 208 list_for_each_entry_safe_from(iface, niface, &ses->iface_list, in cifs_try_adding_channels() 211 if (iface->rdma_capable != ses->server->rdma) in cifs_try_adding_channels() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-net-statistics | 1 What: /sys/class/net/<iface>/statistics/collisions 9 What: /sys/class/net/<iface>/statistics/multicast 17 What: /sys/class/net/<iface>/statistics/rx_bytes 26 What: /sys/class/net/<iface>/statistics/rx_compressed 35 What: /sys/class/net/<iface>/statistics/rx_crc_errors 44 What: /sys/class/net/<iface>/statistics/rx_dropped 54 What: /sys/class/net/<iface>/statistics/rx_errors 62 What: /sys/class/net/<iface>/statistics/rx_fifo_errors 71 What: /sys/class/net/<iface>/statistics/rx_frame_errors 81 What: /sys/class/net/<iface>/statistics/rx_length_errors [all …]
|
| H A D | sysfs-class-net | 1 What: /sys/class/net/<iface>/name_assign_type 15 What: /sys/class/net/<iface>/addr_assign_type 29 What: /sys/class/net/<iface>/addr_len 39 What: /sys/class/net/<iface>/address 48 What: /sys/class/net/<bridge iface>/bridge/group_fwd_mask 70 What: /sys/class/net/<iface>/broadcast 79 What: /sys/class/net/<iface>/carrier 96 What: /sys/class/net/<iface>/dev_id 106 What: /sys/class/net/<iface>/dev_port 124 What: /sys/class/net/<iface>/dormant [all …]
|
| H A D | sysfs-class-net-queues | 1 What: /sys/class/net/<iface>/queues/rx-<queue>/rps_cpus 11 What: /sys/class/net/<iface>/queues/rx-<queue>/rps_flow_cnt 19 What: /sys/class/net/<iface>/queues/tx-<queue>/tx_timeout 27 What: /sys/class/net/<iface>/queues/tx-<queue>/tx_maxrate 35 What: /sys/class/net/<iface>/queues/tx-<queue>/xps_cpus 45 What: /sys/class/net/<iface>/queues/tx-<queue>/xps_rxqs 56 What: /sys/class/net/<iface>/queues/tx-<queue>/byte_queue_limits/hold_time 65 What: /sys/class/net/<iface>/queues/tx-<queue>/byte_queue_limits/inflight 73 What: /sys/class/net/<iface>/queues/tx-<queue>/byte_queue_limits/limit 82 What: /sys/class/net/<iface>/queues/tx-<queue>/byte_queue_limits/limit_max [all …]
|
| /linux/drivers/media/platform/amphion/ |
| H A 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 …]
|
| H A 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 …]
|
| /linux/net/netfilter/ipset/ |
| H A D | ip_set_hash_netiface.c | 63 char iface[IFNAMSIZ]; member 78 strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 : in hash_netiface4_data_equal() 79 strcmp(ip1->iface, ip2->iface) == 0); in hash_netiface4_data_equal() 118 nla_put_string(skb, IPSET_ATTR_IFACE, data->iface) || in hash_netiface4_data_list() 185 STRSCPY(e.iface, eiface); in hash_netiface4_kadt() 189 STRSCPY(e.iface, SRCDIR ? IFACE(in) : IFACE(out)); in hash_netiface4_kadt() 192 if (strlen(e.iface) == 0) in hash_netiface4_kadt() 229 nla_strscpy(e.iface, tb[IPSET_ATTR_IFACE], IFNAMSIZ); in hash_netiface4_uadt() 297 char iface[IFNAMSIZ]; member 312 strncmp(ip1->iface, ip2->iface, strlen(ip1->iface)) == 0 : in hash_netiface6_data_equal() [all …]
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A 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 …]
|
| /linux/net/appletalk/ |
| H A D | ddp.c | 217 struct atalk_iface **iface = &atalk_interfaces; in atif_drop_device() local 221 while ((tmp = *iface) != NULL) { in atif_drop_device() 223 *iface = tmp->next; in atif_drop_device() 228 iface = &tmp->next; in atif_drop_device() 236 struct atalk_iface *iface = kzalloc(sizeof(*iface), GFP_KERNEL); in atif_add_device() local 238 if (!iface) in atif_add_device() 242 iface->dev = dev; in atif_add_device() 243 dev->atalk_ptr = iface; in atif_add_device() 244 iface in atif_add_device() 350 struct atalk_iface *iface = dev->atalk_ptr; atalk_find_dev_addr() local 358 struct atalk_iface *iface; atalk_find_primary() local 391 struct atalk_iface *iface = dev->atalk_ptr; atalk_find_anynet() local 410 struct atalk_iface *iface; atalk_find_interface() local 514 struct atalk_iface *iface, *riface; atrtr_create() local [all...] |
| /linux/drivers/usb/misc/ |
| H A D | appledisplay.c | 206 static int appledisplay_probe(struct usb_interface *iface, in appledisplay_probe() argument 212 struct usb_device *udev = interface_to_usbdev(iface); in appledisplay_probe() 220 retval = usb_find_int_in_endpoint(iface->cur_altsetting, &endpoint); in appledisplay_probe() 222 dev_err(&iface->dev, "Could not find int-in endpoint\n"); in appledisplay_probe() 259 dev_err(&iface->dev, "Allocating URB buffer failed\n"); in appledisplay_probe() 271 dev_err(&iface->dev, "Submitting URB failed\n"); in appledisplay_probe() 284 dev_err(&iface->dev, "Backlight registration failed\n"); in appledisplay_probe() 295 dev_err(&iface->dev, in appledisplay_probe() 304 usb_set_intfdata(iface, pdata); in appledisplay_probe() 323 usb_set_intfdata(iface, NULL); in appledisplay_probe() [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | ssm2602.c | 312 unsigned int iface; in ssm2602_hw_params() local 322 iface = 0x0; in ssm2602_hw_params() 325 iface = 0x4; in ssm2602_hw_params() 328 iface = 0x8; in ssm2602_hw_params() 331 iface = 0xc; in ssm2602_hw_params() 337 IFACE_AUDIO_DATA_LEN, iface); in ssm2602_hw_params() 432 unsigned int iface = 0; in ssm2602_set_dai_fmt() local 437 iface |= 0x0040; in ssm2602_set_dai_fmt() 448 iface |= 0x0002; in ssm2602_set_dai_fmt() 453 iface | in ssm2602_set_dai_fmt() [all...] |
| /linux/drivers/mtd/nand/raw/ |
| H A 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()
|
| /linux/arch/um/drivers/ |
| H A D | vector_user.c | 134 static int create_tap_fd(char *iface) in create_tap_fd() argument 147 strscpy(ifr.ifr_name, iface); in create_tap_fd() 164 static int create_raw_fd(char *iface, int flags, int proto) in create_raw_fd() argument 177 strscpy(ifr.ifr_name, iface); in create_raw_fd() 204 char *iface; in user_init_tap_fds() local 210 iface = uml_vector_fetch_arg(ifspec, TOKEN_IFNAME); in user_init_tap_fds() 211 if (iface == NULL) { in user_init_tap_fds() 213 iface = dynamic_ifname; in user_init_tap_fds() 230 strcpy(iface, template); in user_init_tap_fds() 231 for (i = 0; i < strlen(iface); i++) { in user_init_tap_fds() [all …]
|