/drivers/infiniband/hw/mlx4/ |
D | cm.c | 49 int slave_id; member 154 id_map_find_by_sl_id(struct ib_device *ibdev, u32 slave_id, u32 sl_cm_id) in id_map_find_by_sl_id() argument 167 else if (id_map_entry->slave_id > slave_id) in id_map_find_by_sl_id() 169 else if (id_map_entry->slave_id < slave_id) in id_map_find_by_sl_id() 189 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 204 int slave_id = new->slave_id; in sl_id_map_add() local 207 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add() 221 if (ent->sl_cm_id > sl_cm_id || (ent->sl_cm_id == sl_cm_id && ent->slave_id > slave_id)) in sl_id_map_add() 232 id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id) in id_map_alloc() argument 243 ent->slave_id = slave_id; in id_map_alloc() [all …]
|
D | alias_GUID.c | 79 int slave_id; in mlx4_ib_update_cache_on_guid_change() local 94 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_update_cache_on_guid_change() 95 if (slave_id >= dev->dev->num_slaves) { in mlx4_ib_update_cache_on_guid_change() 96 pr_debug("The last slave: %d\n", slave_id); in mlx4_ib_update_cache_on_guid_change() 101 memcpy(&dev->sriov.demux[port_index].guid_cache[slave_id], in mlx4_ib_update_cache_on_guid_change() 191 int slave_id, slave_port; in mlx4_ib_notify_slaves_on_guid_change() local 216 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_notify_slaves_on_guid_change() 217 if (slave_id >= dev->dev->persist->num_vfs + 1) in mlx4_ib_notify_slaves_on_guid_change() 220 slave_port = mlx4_phys_to_slave_port(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change() 254 mlx4_gen_guid_change_eqe(dev->dev, slave_id, port_num); in mlx4_ib_notify_slaves_on_guid_change() [all …]
|
D | mad.c | 689 u8 *slave_id; in mlx4_ib_demux_mad() local 747 slave_id = (u8 *) &mad->mad_hdr.tid; in mlx4_ib_demux_mad() 748 slave = *slave_id; in mlx4_ib_demux_mad() 750 *slave_id = 0; /* remap tid */ in mlx4_ib_demux_mad() 1485 u8 *slave_id; in mlx4_ib_multiplex_mad() local 1520 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid; in mlx4_ib_multiplex_mad() 1521 if (*slave_id) { in mlx4_ib_multiplex_mad() 1523 "class:%d slave:%d\n", *slave_id, in mlx4_ib_multiplex_mad() 1527 *slave_id = slave; in mlx4_ib_multiplex_mad()
|
D | mlx4_ib.h | 872 int mlx4_ib_multiplex_cm_handler(struct ib_device *ibdev, int port, int slave_id, 876 void mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave_id);
|
/drivers/spmi/ |
D | hisi-spmi-controller.c | 112 u8 opc, u8 slave_id, u16 slave_addr, u8 *__buf, size_t bc) in spmi_read_cmd() argument 147 ((slave_id & 0xf) << SPMI_APB_SPMI_CMD_SLAVEID_OFFSET) | /* slvid */ in spmi_read_cmd() 155 spmi_controller->base, slave_id, slave_addr); in spmi_read_cmd() 161 SPMI_SLAVE_OFFSET * slave_id + in spmi_read_cmd() 179 opc, slave_id, slave_addr, bc + 1); in spmi_read_cmd() 182 __func__, slave_id, slave_addr, (int)bc, __buf); in spmi_read_cmd() 188 u8 opc, u8 slave_id, u16 slave_addr, const u8 *__buf, size_t bc) in spmi_write_cmd() argument 223 ((slave_id & 0xf) << SPMI_APB_SPMI_CMD_SLAVEID_OFFSET) | in spmi_write_cmd() 249 spmi_controller->base, slave_id, in spmi_write_cmd() 255 opc, slave_id, slave_addr, bc); in spmi_write_cmd() [all …]
|
/drivers/dma/sh/ |
D | shdma-base.c | 137 ops->setup_xfer(schan, schan->slave_id); in shdma_tx_submit() 198 schan->slave_id = schan->real_slave_id; in shdma_setup_slave() 218 schan->real_slave_id = slave->slave_id; in shdma_alloc_chan_resources() 224 schan->slave_id = -EINVAL; in shdma_alloc_chan_resources() 250 clear_bit(slave->slave_id, shdma_slave_used); in shdma_alloc_chan_resources() 278 int slave_id = (long)arg; in shdma_chan_filter() local 296 ret = sdev->ops->set_slave(schan, slave_id, 0, true); in shdma_chan_filter() 300 schan->real_slave_id = schan->slave_id; in shdma_chan_filter() 304 if (slave_id < 0) { in shdma_chan_filter() 310 if (slave_id >= slave_num) in shdma_chan_filter() [all …]
|
D | shdmac.c | 305 int slave_id) in sh_dmae_setup_xfer() argument 310 if (slave_id >= 0) { in sh_dmae_setup_xfer() 338 if (cfg->slave_id == match) in dmae_find_slave() 343 sh_chan->shdma_chan.slave_id = i; in dmae_find_slave() 352 int slave_id, dma_addr_t slave_addr, bool try) in sh_dmae_set_slave() argument 356 const struct sh_dmae_slave_config *cfg = dmae_find_slave(sh_chan, slave_id); in sh_dmae_set_slave() 617 if (sh_chan->shdma_chan.slave_id >= 0) { in sh_dmae_resume()
|
/drivers/dma/ |
D | acpi-dma.c | 321 if (dma_spec->slave_id < adma->base_request_line || in acpi_dma_update_dma_spec() 322 dma_spec->slave_id > adma->end_request_line) in acpi_dma_update_dma_spec() 329 dma_spec->slave_id -= adma->base_request_line; in acpi_dma_update_dma_spec() 354 pdata->dma_spec.slave_id = dma->request_lines; in acpi_dma_parse_fixed_dma() 387 dma_spec->slave_id = -1; in acpi_dma_request_slave_chan_by_index() 396 if (dma_spec->slave_id < 0 || dma_spec->chan_id < 0) in acpi_dma_request_slave_chan_by_index()
|
D | fsl-edma.c | 125 fsl_chan->slave_id = dma_spec->args[1]; in fsl_edma_xlate() 126 fsl_edma_chan_mux(fsl_chan, fsl_chan->slave_id, in fsl_edma_xlate() 358 fsl_chan->slave_id = 0; in fsl_edma_probe() 476 if (fsl_chan->slave_id != 0) in fsl_edma_resume_early() 477 fsl_edma_chan_mux(fsl_chan, fsl_chan->slave_id, true); in fsl_edma_resume_early()
|
D | tegra186-gpc-dma.c | 233 int slave_id; member 308 int sid = tdc->slave_id; in tegra_dma_sid_reserve() 338 int sid = tdc->slave_id; in tegra_dma_sid_free() 1025 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_slave_sg() 1160 csr |= FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, tdc->slave_id); in tegra_dma_prep_dma_cyclic() 1267 tdc->slave_id = -1; in tegra_dma_free_chan_resources() 1286 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate() 1397 tdc->slave_id = -1; in tegra_dma_probe()
|
D | tegra20-apb-dma.c | 203 unsigned int slave_id; member 1080 if (tdc->slave_id != TEGRA_APBDMA_SLAVE_ID_INVALID) { in tegra_dma_prep_slave_sg() 1082 csr |= tdc->slave_id << TEGRA_APBDMA_CSR_REQ_SEL_SHIFT; in tegra_dma_prep_slave_sg() 1228 if (tdc->slave_id != TEGRA_APBDMA_SLAVE_ID_INVALID) { in tegra_dma_prep_dma_cyclic() 1230 csr |= tdc->slave_id << TEGRA_APBDMA_CSR_REQ_SEL_SHIFT; in tegra_dma_prep_dma_cyclic() 1348 tdc->slave_id = TEGRA_APBDMA_SLAVE_ID_INVALID; in tegra_dma_free_chan_resources() 1368 tdc->slave_id = dma_spec->args[0]; in tegra_dma_of_xlate() 1518 tdc->slave_id = TEGRA_APBDMA_SLAVE_ID_INVALID; in tegra_dma_probe()
|
D | milbeaut-hdmac.c | 72 unsigned int slave_id; member 147 ca = FIELD_PREP(MLB_HDMAC_IS, mc->slave_id); in milbeaut_chan_start() 419 mc->slave_id = dma_spec->args[0]; in milbeaut_hdmac_xlate()
|
D | mcf-edma.c | 228 mcf_chan->slave_id = i; in mcf_edma_probe() 310 return (mcf_chan->slave_id == (uintptr_t)param); in mcf_edma_filter_fn()
|
D | fsl-edma-common.h | 119 u32 slave_id; member
|
/drivers/soc/tegra/cbb/ |
D | tegra234-cbb.c | 270 u8 slave_id, u8 fab_id) in tegra234_lookup_slave_timeout() argument 292 addr = cbb->regs + map[slave_id].offset; in tegra234_lookup_slave_timeout() 294 if (strstr(map[slave_id].name, "AXI2APB")) { in tegra234_lookup_slave_timeout() 297 tegra234_cbb_lookup_apbslv(file, map[slave_id].name, addr); in tegra234_lookup_slave_timeout() 306 sprintf(name, "%s_SLV_TIMEOUT_STATUS", map[slave_id].name); in tegra234_lookup_slave_timeout() 356 u8 access_type, access_id, requester_socket_id, local_socket_id, slave_id, fab_id; in print_errlog_err() local 384 slave_id = FIELD_GET(FAB_EM_EL_SLAVEID, cbb->mn_attr2); in print_errlog_err() 428 tegra_cbb_print_err(file, "\t Slave_Id\t\t: %#x\n", slave_id); in print_errlog_err() 439 if (slave_id >= cbb->fabric->max_slaves) { in print_errlog_err() 440 tegra_cbb_print_err(file, "\t Invalid slave_id:%d\n", slave_id); in print_errlog_err() [all …]
|
/drivers/dma/dw/ |
D | acpi.c | 14 .src_id = dma_spec->slave_id, in dw_dma_acpi_filter() 15 .dst_id = dma_spec->slave_id, in dw_dma_acpi_filter()
|
/drivers/fsi/ |
D | fsi-core.c | 112 uint8_t slave_id, uint32_t addr, void *val, size_t size); 114 uint8_t slave_id, uint32_t addr, const void *val, size_t size); 1143 uint8_t slave_id, uint32_t addr, void *val, size_t size) in fsi_master_read() argument 1147 trace_fsi_master_read(master, link, slave_id, addr, size); in fsi_master_read() 1151 rc = master->read(master, link, slave_id, addr, val, size); in fsi_master_read() 1153 trace_fsi_master_rw_result(master, link, slave_id, addr, size, in fsi_master_read() 1160 uint8_t slave_id, uint32_t addr, const void *val, size_t size) in fsi_master_write() argument 1164 trace_fsi_master_write(master, link, slave_id, addr, size, val); in fsi_master_write() 1168 rc = master->write(master, link, slave_id, addr, val, size); in fsi_master_write() 1170 trace_fsi_master_rw_result(master, link, slave_id, addr, size, in fsi_master_write()
|
D | fsi-master-gpio.c | 298 static void build_dpoll_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_dpoll_command() argument 303 msg_push_bits(cmd, slave_id, 2); in build_dpoll_command() 308 static void build_epoll_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_epoll_command() argument 313 msg_push_bits(cmd, slave_id, 2); in build_epoll_command() 318 static void build_term_command(struct fsi_gpio_msg *cmd, uint8_t slave_id) in build_term_command() argument 323 msg_push_bits(cmd, slave_id, 2); in build_term_command()
|
D | fsi-master-ast-cf.c | 274 static void build_dpoll_command(struct fsi_msg *cmd, uint8_t slave_id) in build_dpoll_command() argument 279 msg_push_bits(cmd, slave_id, 2); in build_dpoll_command() 285 static void build_epoll_command(struct fsi_msg *cmd, uint8_t slave_id) in build_epoll_command() argument 290 msg_push_bits(cmd, slave_id, 2); in build_epoll_command() 296 static void build_term_command(struct fsi_msg *cmd, uint8_t slave_id) in build_term_command() argument 301 msg_push_bits(cmd, slave_id, 2); in build_term_command()
|
/drivers/dma/sf-pdma/ |
D | sf-pdma.h | 94 u32 slave_id; member
|
/drivers/net/bonding/ |
D | bond_main.c | 2540 if (i++ == (int)info->slave_id) { in bond_slave_info_query() 4817 int slave_id) in bond_get_slave_by_id() argument 4821 int i = slave_id; in bond_get_slave_by_id() 4832 i = slave_id; in bond_get_slave_by_id() 4853 u32 slave_id; in bond_rr_gen_slave_id() local 4859 slave_id = get_random_u32(); in bond_rr_gen_slave_id() 4862 slave_id = this_cpu_inc_return(*bond->rr_tx_counter); in bond_rr_gen_slave_id() 4867 slave_id = this_cpu_inc_return(*bond->rr_tx_counter); in bond_rr_gen_slave_id() 4868 slave_id = reciprocal_divide(slave_id, in bond_rr_gen_slave_id() 4873 return slave_id; in bond_rr_gen_slave_id() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | eq.c | 152 slave = eqe->slave_id; in mlx4_gen_slave_eqe() 212 s_eqe->slave_id = slave; in slave_event() 737 flr_slave = be32_to_cpu(eqe->event.flr_event.slave_id); in mlx4_eq_int() 783 eqe->slave_id, in mlx4_eq_int() 820 eqe->slave_id, in mlx4_eq_int()
|
/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 1456 struct uvc_fh *handle, struct uvc_control *master, u32 slave_id) in uvc_ctrl_send_slave_event() argument 1463 __uvc_find_control(master->entity, slave_id, &mapping, &ctrl, 0); in uvc_ctrl_send_slave_event() 1579 u32 slave_id = mapping->slave_ids[j]; in uvc_ctrl_send_events() local 1581 if (!slave_id) in uvc_ctrl_send_events() 1589 slave_id)) in uvc_ctrl_send_events() 1593 slave_id); in uvc_ctrl_send_events()
|
/drivers/usb/renesas_usbhs/ |
D | fifo.c | 1240 if (0 == slave->shdma_slave.slave_id) in usbhsf_dma_filter() 1447 fifo->tx_slave.shdma_slave.slave_id = \ 1449 fifo->rx_slave.shdma_slave.slave_id = \
|
/drivers/mmc/host/ |
D | sh_mmcif.c | 388 sh_mmcif_request_dma_pdata(struct sh_mmcif_host *host, uintptr_t slave_id) in sh_mmcif_request_dma_pdata() argument 394 if (slave_id <= 0) in sh_mmcif_request_dma_pdata() 397 return dma_request_channel(mask, shdma_chan_filter, (void *)slave_id); in sh_mmcif_request_dma_pdata()
|